Skip to content

Commit

Permalink
Add first empty object to extend options
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Jun 16, 2018
1 parent 3459484 commit 3eba96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class BasePlugin
* @param {object} options
*/
static set defaultOptions(options) {
DEFAULT_OPTIONS[this.name] = $.extend(true, DEFAULT_OPTIONS[this.name], options);
DEFAULT_OPTIONS[this.name] = $.extend(true, {}, DEFAULT_OPTIONS[this.name], options);
}

/**
Expand Down

0 comments on commit 3eba96e

Please sign in to comment.