Ticket #591: panzoomMemory.patch
| File panzoomMemory.patch, 1.1 kB (added by euzuro, 2 years ago) |
|---|
-
lib/OpenLayers/Control/PanZoom.js
old new 33 33 }, 34 34 35 35 /** 36 * 37 */ 38 destroy: function() { 39 OpenLayers.Control.prototype.destroy.apply(this, arguments); 40 while(this.buttons.length) { 41 var btn = this.buttons.shift(); 42 btn.map = null; 43 OpenLayers.Event.stopObservingElement(btn); 44 } 45 this.buttons = null; 46 this.position = null; 47 }, 48 49 /** 36 50 * @param {OpenLayers.Pixel} px 37 51 * 38 52 * @returns A reference to the container div for the PanZoom control … … 142 156 OpenLayers.Event.stop(evt); 143 157 }, 144 158 145 /**146 *147 */148 destroy: function() {149 OpenLayers.Control.prototype.destroy.apply(this, arguments);150 for(i=0; i<this.buttons.length; i++) {151 this.buttons[i].map = null;152 }153 },154 155 159 /** @final @type String */ 156 160 CLASS_NAME: "OpenLayers.Control.PanZoom" 157 161 });
