OpenLayers OpenLayers

Ticket #1404: null.patch

File null.patch, 1.1 kB (added by tschaub, 10 months ago)

null effect

  • lib/OpenLayers/Map.js

    old new  
    545545        } 
    546546        this.viewPortDiv = null; 
    547547 
     548        this.eventListeners = null; 
    548549        this.events.destroy(); 
    549550        this.events = null; 
    550551 
  • lib/OpenLayers/Control.js

    old new  
    177177     * to prevent memory leaks. 
    178178     */ 
    179179    destroy: function () { 
     180        this.eventListeners = null; 
    180181        if(this.events) { 
    181182            this.events.destroy(); 
    182183            this.events = null; 
  • lib/OpenLayers/Layer.js

    old new  
    314314        this.div = null; 
    315315        this.options = null; 
    316316 
     317        this.eventListeners = null; 
    317318        if (this.events) { 
    318319            this.events.destroy(); 
    319320        }