Skip to content

Commit

Permalink
deep clone all defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
craftpip committed Dec 25, 2016
1 parent 79ae78d commit 334ecaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/jquery-confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ var jconfirm, Jconfirm;
/*
* Merge global defaults with plugin defaults
*/
$.extend(jconfirm.pluginDefaults, jconfirm.defaults);
$.extend(true, jconfirm.pluginDefaults, jconfirm.defaults);
}

/*
* merge options with plugin defaults.
*/
options = $.extend({}, jconfirm.pluginDefaults, options);
options = $.extend(true, {}, jconfirm.pluginDefaults, options);
var instance = new Jconfirm(options);
jconfirm.instances.push(instance);
return instance;
Expand Down

0 comments on commit 334ecaf

Please sign in to comment.