Button: Create text span in correct document.

This commit is contained in:
Scott González 2011-10-20 13:28:31 -04:00
parent 2f89f35643
commit c145f1698a

View File

@ -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() )