Ticket #642: navigation.patch
| File navigation.patch, 0.8 kB (added by crschmidt, 1 year ago) |
|---|
-
lib/OpenLayers/Control/Navigation.js
old new 55 55 }, 56 56 57 57 /** 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 /** 58 73 * Method: activate 59 74 */ 60 75 activate: function() {
