Skip to content
Permalink
Browse files

Button: Create text span in correct document.

  • Loading branch information
scottgonzalez committed Oct 20, 2011
1 parent 2f89f35 commit c145f1698aa4bfb8b0d1c94e2bfa83399f1de0f3
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.button.js
@@ -319,7 +319,7 @@ $.widget( "ui.button", {
return;
}
var buttonElement = this.buttonElement.removeClass( typeClasses ),
buttonText = $( "<span></span>" )
buttonText = $( "<span></span>", this.element[0].ownerDocument )
.addClass( "ui-button-text" )
.html( this.options.label )
.appendTo( buttonElement.empty() )

0 comments on commit c145f16

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