Ticket #65: ticket65.patch
| File ticket65.patch, 1.0 kB (added by bartvde, 3 years ago) |
|---|
-
lib/GeoExt/data/LayerStore.js
old new 199 199 if(recordIndex > -1) { 200 200 if(layerIndex !== recordIndex) { 201 // taken from http://extjs.com/forum/showthread.php?t=13639 201 202 var record = this.getAt(recordIndex); 202 this._removing = true; 203 this.remove(record); 204 delete this._removing; 205 this._adding = true; 206 this.insert(layerIndex, [record]); 207 delete this._adding; 203 this.data.removeAt(recordIndex); 204 this.data.insert(layerIndex, record); 205 this.fireEvent("move", this, record, recordIndex, layerIndex); 208 206 } 209 207 }