Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Widget: Simplified _getCreateOptions().

  • Loading branch information...
commit 62799d9122068817cf98ae6012a639a93568031a 1 parent 512825d
@scottgonzalez scottgonzalez authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 ui/jquery.ui.widget.js
View
6 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() {},
Please sign in to comment.
Something went wrong with that request. Please try again.