diff options
-rw-r--r-- | ui/jquery.ui.widget.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 7c8567ced..09c680ec3 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -178,9 +178,7 @@ $.Widget.prototype = { this._trigger( "create" ); this._init(); }, - _getCreateOptions: function() { - return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ]; - }, + _getCreateOptions: $.noop, _create: $.noop, _init: $.noop, @@ -340,4 +338,11 @@ $.Widget.prototype = { } }; +// DEPRECATED +if ( $.uiBackCompat !== false ) { + $.Widget.prototype._getCreateOptions = function() { + return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ]; + } +} + })( jQuery ); |