]> source.dussan.org Git - jquery-ui.git/commitdiff
Widget: Deprecated use of metadata plugin. Fixes #7191 - Widget: Deprecate use of...
authorScott González <scott.gonzalez@gmail.com>
Wed, 23 Mar 2011 13:16:19 +0000 (09:16 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 23 Mar 2011 13:16:19 +0000 (09:16 -0400)
ui/jquery.ui.widget.js

index 7c8567ced214d49817cc89a49de300b997961e46..09c680ec354d2d1feaee8d03adcf14bf1314578e 100644 (file)
@@ -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 );