Permalink
Browse files
Button: Trim button text before setting as title attribute.
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
ui/jquery.ui.button.js
|
@@ -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 { |
|
|
0 comments on commit
535ef2a