aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.button.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-10-20 13:28:31 -0400
committerScott González <scott.gonzalez@gmail.com>2011-10-20 13:28:31 -0400
commitc145f1698aa4bfb8b0d1c94e2bfa83399f1de0f3 (patch)
tree350a741818c5c06e5ce830f8dbfe45ecb70a0661 /ui/jquery.ui.button.js
parent2f89f356433d83a56135070c2f7d3b188c756b5a (diff)
downloadjquery-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.js2
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() )