Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Button: Create text span in correct document.
  • Loading branch information
scottgonzalez committed Oct 20, 2011
1 parent 2f89f35 commit c145f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.button.js
Expand Up @@ -319,7 +319,7 @@ $.widget( "ui.button", {
return; return;
} }
var buttonElement = this.buttonElement.removeClass( typeClasses ), var buttonElement = this.buttonElement.removeClass( typeClasses ),
buttonText = $( "<span></span>" ) buttonText = $( "<span></span>", this.element[0].ownerDocument )
.addClass( "ui-button-text" ) .addClass( "ui-button-text" )
.html( this.options.label ) .html( this.options.label )
.appendTo( buttonElement.empty() ) .appendTo( buttonElement.empty() )
Expand Down

0 comments on commit c145f16

Please sign in to comment.