r2392 - Widget factory: Fixed #4366 - Deep copy options on init.

r2392 - Widget factory: Fixed #4366 - Deep copy options on init.


Author: scott.gonzalez
Date: Fri Mar 27 17:06:34 2009
New Revision: 2392
Modified:
trunk/ui/ui.core.js
Log:
Widget factory: Fixed #4366 - Deep copy options on init.
Modified: trunk/ui/ui.core.js
==============================================================================
--- trunk/ui/ui.core.js    (original)
+++ trunk/ui/ui.core.js    Fri Mar 27 17:06:34 2009
@@ -261,7 +261,7 @@
        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],