aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Hollis <hollis21@gmail.com>2012-06-25 09:52:42 -0400
committerScott González <scott.gonzalez@gmail.com>2012-06-25 09:52:42 -0400
commit535ef2a01c27857cf9e11c86beea97890266e018 (patch)
tree32a54e8c71ef743e4c31fd7137d485705acffdd5
parent0fcf37fba6126c24c1ff9a5e2979fd565a9b4cec (diff)
downloadjquery-ui-535ef2a01c27857cf9e11c86beea97890266e018.tar.gz
jquery-ui-535ef2a01c27857cf9e11c86beea97890266e018.zip
Button: Trim button text before setting as title attribute.
-rw-r--r--ui/jquery.ui.button.js2
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 {