OpenLayers OpenLayers

Ticket #642: navigation.patch

File navigation.patch, 0.8 kB (added by crschmidt, 1 year ago)
  • lib/OpenLayers/Control/Navigation.js

    old new  
    5555    }, 
    5656 
    5757    /** 
     58     * Method: destroy 
     59     * The destroy method is used to perform any clean up before the control 
     60     * is dereferenced.  Typically this is where event listeners are removed 
     61     * to prevent memory leaks. 
     62     */ 
     63    destroy: function() { 
     64        OpenLayers.Control.prototype.destroy.apply(this,arguments); 
     65        this.deactivate(); 
     66        this.dragPan.destroy(); 
     67        this.wheelHandler.destroy(); 
     68        this.clickHandler.destroy(); 
     69        this.zoomBox.destroy(); 
     70    }, 
     71     
     72    /** 
    5873     * Method: activate 
    5974     */ 
    6075    activate: function() {