diff options
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r-- | ui/jquery.ui.widget.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index f6089519b..7dfcb4447 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -133,7 +133,7 @@ $.Widget.prototype = { disabled: false }, _createWidget: function( options, element ) { - element = $( element || this.defaultElement )[ 0 ]; + element = $( element || this.defaultElement || this )[ 0 ]; $.data( element, this.widgetName, this ); this.element = $( element ); this.options = $.extend( true, {}, |