Skip to content

Commit

Permalink
Widget: Deprecated use of metadata plugin. Fixes #7191 - Widget: Depr…
Browse files Browse the repository at this point in the history
…ecate use of metadata.
  • Loading branch information
scottgonzalez committed Mar 23, 2011
1 parent 79c0fb7 commit c6e7e3f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ui/jquery.ui.widget.js
Expand Up @@ -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,

Expand Down Expand Up @@ -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.