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:28:31 -0400 |
commit | c145f1698aa4bfb8b0d1c94e2bfa83399f1de0f3 (patch) | |
tree | 350a741818c5c06e5ce830f8dbfe45ecb70a0661 /ui/jquery.ui.button.js | |
parent | 2f89f356433d83a56135070c2f7d3b188c756b5a (diff) | |
download | jquery-ui-c145f1698aa4bfb8b0d1c94e2bfa83399f1de0f3.tar.gz jquery-ui-c145f1698aa4bfb8b0d1c94e2bfa83399f1de0f3.zip |
Button: Create text span in correct document.
Diffstat (limited to 'ui/jquery.ui.button.js')
-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 1d9393d37..63bd1fc73 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() ) |