From a391ea0fddf0c5ddc2c1e6154980e31c45ab003d Mon Sep 17 00:00:00 2001 From: Andrew Lisowski Date: Wed, 14 Nov 2018 11:03:59 -0800 Subject: [PATCH] must set _opt or else settingsBreakpoint in init will reset the value back to the original --- glider.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glider.js b/glider.js index a890058..081eb85 100644 --- a/glider.js +++ b/glider.js @@ -377,6 +377,7 @@ gliderPrototype.setOption = function(opt){ this.opt = Object.assign({}, this.opt, opt) + this._opt = Object.assign({}, this._opt, opt); } gliderPrototype.destroy = function(){ @@ -411,4 +412,4 @@ eventHandler(k, args[k]); }); } -})); \ No newline at end of file +}));