mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Button: Trim button text before setting as title attribute.
This commit is contained in:
committed by
Scott González
parent
0fcf37fba6
commit
535ef2a01c
2
ui/jquery.ui.button.js
vendored
2
ui/jquery.ui.button.js
vendored
@@ -344,7 +344,7 @@ $.widget( "ui.button", {
|
||||
buttonClasses.push( multipleIcons ? "ui-button-icons-only" : "ui-button-icon-only" );
|
||||
|
||||
if ( !this.hasTitle ) {
|
||||
buttonElement.attr( "title", buttonText );
|
||||
buttonElement.attr( "title", $.trim( buttonText ) );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user