mirror of https://github.com/luileito/jsketch.git
Fixed retaining old properties when calling the 'config' method
This commit is contained in:
parent
43fd8c49b8
commit
0a4ff8ba75
|
|
@ -87,7 +87,7 @@
|
|||
config: function(opts) {
|
||||
return this.each(function(){
|
||||
var elem = $(this), data = elem.data(_ns);
|
||||
data.options = $.extend(true, opts || {}, $.fn.sketchable.defaults, data.options);
|
||||
data.options = $.extend(true, {}, $.fn.sketchable.defaults, data.options, opts || {});
|
||||
});
|
||||
},
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue