]> source.dussan.org Git - jquery-ui.git/commitdiff
Widget factory: Fixed #4366 - Deep copy options on init.
authorScott González <scott.gonzalez@gmail.com>
Sat, 28 Mar 2009 00:06:34 +0000 (00:06 +0000)
committerScott González <scott.gonzalez@gmail.com>
Sat, 28 Mar 2009 00:06:34 +0000 (00:06 +0000)
ui/ui.core.js

index bcf330c9591bbb8dc35afc8d9aa684dc001db248..7c1ea8ca9b3a08d63b4c9c2ef87055ee394715b0 100644 (file)
@@ -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],