Fixed retaining old properties when calling the 'config' method

This commit is contained in:
Luis Leiva 2016-11-27 22:06:06 +01:00
parent 43fd8c49b8
commit 0a4ff8ba75
1 changed files with 1 additions and 1 deletions

View File

@ -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 || {});
});
},
/**