From: Scott González Date: Thu, 20 Oct 2011 17:28:31 +0000 (-0400) Subject: Button: Create text span in correct document. X-Git-Tag: 1.9m7~174 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c145f1698aa4bfb8b0d1c94e2bfa83399f1de0f3;p=jquery-ui.git Button: Create text span in correct document. --- 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 = $( "" ) + buttonText = $( "", this.element[0].ownerDocument ) .addClass( "ui-button-text" ) .html( this.options.label ) .appendTo( buttonElement.empty() )