Skip to content
Permalink
Browse files

Widget: Deprecated use of metadata plugin. Fixes #7191 - Widget: Depr…

…ecate use of metadata.
  • Loading branch information...
scottgonzalez committed Mar 23, 2011
1 parent 79c0fb7 commit c6e7e3fc28fdf6ce74bf9768fa4101cf3a163d1c
Showing with 8 additions and 3 deletions.
  1. +8 −3 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 );

0 comments on commit c6e7e3f

Please sign in to comment.
You can’t perform that action at this time.