We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39f0c10 commit b3940d2Copy full SHA for b3940d2
ui/jquery.ui.widget.js
@@ -129,7 +129,8 @@ $.Widget.prototype = {
129
_createWidget: function( options, element ) {
130
// $.widget.bridge stores the plugin instance, but we do it anyway
131
// so that it's stored even before the _create function runs
132
- this.element = $( element ).data( this.widgetName, this );
+ $.data( element, this.widgetName, this );
133
+ this.element = $( element );
134
this.options = $.extend( true, {},
135
this.options,
136
$.metadata && $.metadata.get( element )[ this.widgetName ],
0 commit comments