diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-10-07 09:06:28 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-10-07 09:06:28 -0400 |
commit | 62799d9122068817cf98ae6012a639a93568031a (patch) | |
tree | 5bcd64556d48ea3c3fe61d819ada1bfec5354571 /ui/jquery.ui.widget.js | |
parent | 512825d358851f4b2b584f1b6463e9cd48f31752 (diff) | |
download | jquery-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.js | 6 |
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() {}, |