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 +};