Permalink
Browse files

Widget: Simplified _getCreateOptions().

  • Loading branch information...
scottgonzalez committed Oct 7, 2010
1 parent 512825d commit 62799d9122068817cf98ae6012a639a93568031a
Showing with 1 addition and 5 deletions.
  1. +1 −5 ui/jquery.ui.widget.js
@@ -158,11 +158,7 @@ $.Widget.prototype = {
this._init();
},
_getCreateOptions: function() {
var options = {};
if ( $.metadata ) {
options = $.metadata.get( element )[ this.widgetName ];
}
return options;
return $.metadata && $.metadata.get( element )[ this.widgetName ];
},
_create: function() {},
_init: function() {},

0 comments on commit 62799d9

Please sign in to comment.