Skip to content
Permalink
Browse files

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

  • Loading branch information
scottgonzalez committed Mar 28, 2009
1 parent 3aab07e commit 4e64af70b655b30c89235911e91ea23e029faf8f
Showing with 1 addition and 1 deletion.
  1. +1 −1 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],

0 comments on commit 4e64af7

Please sign in to comment.
You can’t perform that action at this time.