From: Alan Knowles Date: Fri, 8 May 2020 08:43:10 +0000 (+0800) Subject: sync X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=5b1a708cf006e24f8f6eb81a4e9723dad77c31cd;hp=-c sync --- 5b1a708cf006e24f8f6eb81a4e9723dad77c31cd diff --combined docs/src/Roo_grid_Grid.js.html index 93dfadbefb,351d32c22c..5a50968cd0 --- a/docs/src/Roo_grid_Grid.js.html +++ b/docs/src/Roo_grid_Grid.js.html @@@ -484,12 -484,12 +484,12 @@@ return this; }, - /** - * Reconfigures the grid to use a different Store and Column Model. - * The View will be bound to the new objects and refreshed. - * @param {Roo.data.Store} dataSource The new {@link Roo.data.Store} object - * @param {Roo.grid.ColumnModel} The new {@link Roo.grid.ColumnModel} object - */ + /** + * Reconfigures the grid to use a different Store and Column Model. + * The View will be bound to the new objects and refreshed. + * @param {Roo.data.Store} dataSource The new {@link Roo.data.Store} object + * @param {Roo.grid.ColumnModel} The new {@link Roo.grid.ColumnModel} object + */ reconfigure : function(dataSource, colModel){ if(this.loadMask){ this.loadMask.destroy(); @@@ -522,9 -522,9 +522,9 @@@ 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); @@@ -757,4 -757,4 +757,4 @@@ * %0 is replaced with the number of selected rows. * @type String */ -Roo.grid.Grid.prototype.ddText = "{0} selected row{1}"; +Roo.grid.Grid.prototype.ddText = "{0} selected row{1}";