aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/jquery.ui.widget.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index f41f9637a..d9d75f9e6 100644
--- a/ui/jquery.ui.widget.js
+++ b/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() {},