Ticket #65: ticket65.patch

File ticket65.patch, 1.0 kB (added by bartvde, 3 years ago)

updated the patch so it works against trunk again

  • lib/GeoExt/data/LayerStore.js

    old new  
    199199                if(recordIndex > -1) { 
    200200                    if(layerIndex !== recordIndex) { 
     201                        // taken from http://extjs.com/forum/showthread.php?t=13639 
    201202                        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); 
    208206                    } 
    209207                }