From 535ef2a01c27857cf9e11c86beea97890266e018 Mon Sep 17 00:00:00 2001 From: Mike Hollis Date: Mon, 25 Jun 2012 09:52:42 -0400 Subject: Button: Trim button text before setting as title attribute. --- ui/jquery.ui.button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/jquery.ui.button.js') 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 { -- cgit v1.2.3