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.
(cherry picked from commit c145f1698a
)
This commit is contained in:
parent
eee4db7866
commit
39e75ade1d
2
ui/jquery.ui.button.js
vendored
2
ui/jquery.ui.button.js
vendored
@ -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() )
|
||||||
|
Loading…
Reference in New Issue
Block a user