Skip to content
Permalink
Browse files

Button: Trim button text before setting as title attribute.

  • Loading branch information
hollis21 authored and scottgonzalez committed Jun 25, 2012
1 parent 0fcf37f commit 535ef2a01c27857cf9e11c86beea97890266e018
Showing with 1 addition and 1 deletion.
  1. +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

Please sign in to comment.
You can’t perform that action at this time.