aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-10-07 09:06:28 -0400
committerScott González <scott.gonzalez@gmail.com>2010-10-07 09:06:28 -0400
commit62799d9122068817cf98ae6012a639a93568031a (patch)
tree5bcd64556d48ea3c3fe61d819ada1bfec5354571 /ui/jquery.ui.widget.js
parent512825d358851f4b2b584f1b6463e9cd48f31752 (diff)
downloadjquery-ui-62799d9122068817cf98ae6012a639a93568031a.tar.gz
jquery-ui-62799d9122068817cf98ae6012a639a93568031a.zip
Widget: Simplified _getCreateOptions().
Diffstat (limited to 'ui/jquery.ui.widget.js')
-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() {},