diff options
author | Mike Hollis <hollis21@gmail.com> | 2012-06-25 09:52:42 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-06-25 09:52:42 -0400 |
commit | 535ef2a01c27857cf9e11c86beea97890266e018 (patch) | |
tree | 32a54e8c71ef743e4c31fd7137d485705acffdd5 | |
parent | 0fcf37fba6126c24c1ff9a5e2979fd565a9b4cec (diff) | |
download | jquery-ui-535ef2a01c27857cf9e11c86beea97890266e018.tar.gz jquery-ui-535ef2a01c27857cf9e11c86beea97890266e018.zip |
Button: Trim button text before setting as title attribute.
-rw-r--r-- | ui/jquery.ui.button.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 0c72e9c4b..89f6626f8 100644 --- a/ui/jquery.ui.button.js +++ b/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 { |