Skip to content

Commit 62799d9

Browse files
committed
Widget: Simplified _getCreateOptions().
1 parent 512825d commit 62799d9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ui/jquery.ui.widget.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,7 @@ $.Widget.prototype = {
158158
this._init();
159159
},
160160
_getCreateOptions: function() {
161-
var options = {};
162-
if ( $.metadata ) {
163-
options = $.metadata.get( element )[ this.widgetName ];
164-
}
165-
return options;
161+
return $.metadata && $.metadata.get( element )[ this.widgetName ];
166162
},
167163
_create: function() {},
168164
_init: function() {},

0 commit comments

Comments
 (0)