From 62799d9122068817cf98ae6012a639a93568031a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 7 Oct 2010 09:06:28 -0400 Subject: [PATCH] Widget: Simplified _getCreateOptions(). --- ui/jquery.ui.widget.js | 6 +----- 1 file changed, 1 insertion(+), 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() {}, -- 2.39.5