diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-07-15 10:26:00 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-07-15 10:27:21 -0400 |
commit | f24bc0fb1f63e7f5e38014d7191a4fe69d4179f0 (patch) | |
tree | 567952cea5b7b2d347c87cd1ab8d05ea8f1206f4 /ui/jquery.ui.widget.js | |
parent | 06f721b74f94272baf5da96133e961f5600f5a90 (diff) | |
download | jquery-ui-f24bc0fb1f63e7f5e38014d7191a4fe69d4179f0.tar.gz jquery-ui-f24bc0fb1f63e7f5e38014d7191a4fe69d4179f0.zip |
Widget: Deep extend options when creating a new plugin. Fixes #5830 - Widget: Using inheritance overwrites the base classes options.
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r-- | ui/jquery.ui.widget.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 1014c607a..265489866 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -57,7 +57,7 @@ $.widget = function( name, base, prototype ) { // basePrototype[ key ] = $.extend( {}, val ); // } // }); - basePrototype.options = $.extend( {}, basePrototype.options ); + basePrototype.options = $.extend( true, {}, basePrototype.options ); $[ namespace ][ name ].prototype = $.extend( true, basePrototype, { namespace: namespace, widgetName: name, |