Skip to content

Commit

Permalink
must set _opt or else settingsBreakpoint in init will reset the value…
Browse files Browse the repository at this point in the history
… back to the original
  • Loading branch information
hipstersmoothie authored Nov 14, 2018
1 parent 56606bb commit a391ea0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion glider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down Expand Up @@ -411,4 +412,4 @@
eventHandler(k, args[k]);
});
}
}));
}));

0 comments on commit a391ea0

Please sign in to comment.