Permalink
Browse files

Button: Create text span in correct document.

(cherry picked from commit c145f16)
  • Loading branch information...
1 parent eee4db7 commit 39e75ade1de8c37f120fc13aadc048c23211138c @scottgonzalez scottgonzalez committed Oct 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.button.js
View
@@ -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 39e75ad

Please sign in to comment.