diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-10-20 13:28:31 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-10-20 13:29:10 -0400 |
commit | 39e75ade1de8c37f120fc13aadc048c23211138c (patch) | |
tree | b169e0c4594d53dc7518567cfbcba83a566734a1 | |
parent | eee4db7866fcba3d5bea72be311445cde62b13ca (diff) | |
download | jquery-ui-39e75ade1de8c37f120fc13aadc048c23211138c.tar.gz jquery-ui-39e75ade1de8c37f120fc13aadc048c23211138c.zip |
Button: Create text span in correct document.
(cherry picked from commit c145f1698aa4bfb8b0d1c94e2bfa83399f1de0f3)
-rw-r--r-- | ui/jquery.ui.button.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 7774ab937..31074e2e1 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -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() ) |