Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Button: Create text span in correct document.

  • Loading branch information...
commit c145f1698aa4bfb8b0d1c94e2bfa83399f1de0f3 1 parent 2f89f35
Scott González scottgonzalez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ui/jquery.ui.button.js
2  ui/jquery.ui.button.js
View
@@ -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() )
Please sign in to comment.
Something went wrong with that request. Please try again.