From c2770b4463f3c21511f40c0dfa1b67866c22f9a4 Mon Sep 17 00:00:00 2001 From: Denys Khanzhiyev Date: Thu, 31 Jan 2013 18:32:12 +0200 Subject: [PATCH] fix for #178 --- src/classes/grid.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/classes/grid.js b/src/classes/grid.js index 3a0dd241..fe3dfeb7 100644 --- a/src/classes/grid.js +++ b/src/classes/grid.js @@ -63,6 +63,7 @@ window.kg.Grid = function (options) { //self vars self.config = $.extend(defaults, options); self.config.columnDefs = ko.utils.unwrapObservable(options.columnDefs); + if(self.config.columnDefs) self.config.columnDefs = self.config.columnDefs.slice(0,self.config.columnDefs.length); self.gridId = "ng" + window.kg.utils.newId(); self.$root = null; //this is the root element that is passed in with the binding handler self.$groupPanel = null; @@ -513,4 +514,4 @@ window.kg.Grid = function (options) { }); //call init self.init(); -}; \ No newline at end of file +};