mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Button: Create text span in correct document.
This commit is contained in:
parent
2f89f35643
commit
c145f1698a
2
ui/jquery.ui.button.js
vendored
2
ui/jquery.ui.button.js
vendored
@ -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() )
|
||||
|
Loading…
Reference in New Issue
Block a user