Button: Trim button text before setting as title attribute.

This commit is contained in:
Mike Hollis
2012-06-25 09:52:42 -04:00
committed by Scott González
parent 0fcf37fba6
commit 535ef2a01c

View File

@@ -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 {