We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79c0fb7 commit c6e7e3fCopy full SHA for c6e7e3f
ui/jquery.ui.widget.js
@@ -178,9 +178,7 @@ $.Widget.prototype = {
178
this._trigger( "create" );
179
this._init();
180
},
181
- _getCreateOptions: function() {
182
- return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ];
183
- },
+ _getCreateOptions: $.noop,
184
_create: $.noop,
185
_init: $.noop,
186
@@ -340,4 +338,11 @@ $.Widget.prototype = {
340
338
}
341
339
};
342
+// DEPRECATED
+if ( $.uiBackCompat !== false ) {
343
+ $.Widget.prototype._getCreateOptions = function() {
344
+ return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ];
345
+ }
346
+}
347
+
348
})( jQuery );
0 commit comments