From c145f1698aa4bfb8b0d1c94e2bfa83399f1de0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 20 Oct 2011 13:28:31 -0400 Subject: [PATCH] Button: Create text span in correct document. --- ui/jquery.ui.button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 1d9393d3716..63bd1fc73db 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() )