From 4e64af70b655b30c89235911e91ea23e029faf8f Mon Sep 17 00:00:00 2001 From: Scott González Date: Sat, 28 Mar 2009 00:06:34 +0000 Subject: Widget factory: Fixed #4366 - Deep copy options on init. --- ui/ui.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/ui.core.js b/ui/ui.core.js index bcf330c95..7c1ea8ca9 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -261,7 +261,7 @@ $.widget = function(name, prototype) { this.widgetEventPrefix = $[namespace][name].eventPrefix || name; this.widgetBaseClass = namespace + '-' + name; - this.options = $.extend({}, + this.options = $.extend(true, {}, $.widget.defaults, $[namespace][name].defaults, $.metadata && $.metadata.get(element)[name], -- cgit v1.2.3