From 3eba96ed4e81a855829484046e867ab7d6aad666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pluchino?= Date: Sat, 16 Jun 2018 15:49:11 +0200 Subject: [PATCH] Add first empty object to extend options --- js/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugin.js b/js/plugin.js index 7d15e41..708eefe 100644 --- a/js/plugin.js +++ b/js/plugin.js @@ -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); } /**