X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fgrid%2FGrid.js;h=473270564dea5a88c9437fe5f310c6dc6f03981c;hp=24da27ea1242d9df402dcd24de67d231155081af;hb=8673c23959602f121d1fb75c6a7ec7a656352897;hpb=01c95d327a88435efb6a768f21a20506e43ba9ed diff --git a/Roo/grid/Grid.js b/Roo/grid/Grid.js index 24da27ea12..473270564d 100644 --- a/Roo/grid/Grid.js +++ b/Roo/grid/Grid.js @@ -522,9 +522,9 @@ Roo.extend(Roo.grid.Grid, Roo.util.Observable, { pos = this.cm.config.length; //this.cm.config.push(cfg); } pos = Math.max(0,pos); - ar.shift(ar.length); - ar.shift(pos); - this.cm.config.splice.call(ar); + ar.unshift(0); + ar.unshift(pos); + this.cm.config.splice.apply(this.cm.config, ar);