From eb95eec6cac0e6e72f10edba379f03095b1de290 Mon Sep 17 00:00:00 2001 From: Ciki Date: Mon, 27 Nov 2017 11:33:29 +0100 Subject: [PATCH] prevent changing default options when extending --- assets/js/grido.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/grido.js b/assets/js/grido.js index 36cc1246..4a43aa62 100644 --- a/assets/js/grido.js +++ b/assets/js/grido.js @@ -32,7 +32,7 @@ this.$table = $('table', $element); this.name = this.$table.attr('id'); - this.options = $.extend($.fn.grido.defaults, options, this.$table.data('grido-options') || {}); + this.options = $.extend({}, $.fn.grido.defaults, options, this.$table.data('grido-options') || {}); }; Grido.Grid.prototype =