Changeset 5990
- Timestamp:
- 02/05/08 01:34:20 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control/Navigation.js
r5982 r5990 63 63 destroy: function() { 64 64 OpenLayers.Control.prototype.destroy.apply(this,arguments); 65 65 66 this.deactivate(); 66 this.dragPan.destroy(); 67 this.wheelHandler.destroy(); 68 this.clickHandler.destroy(); 69 this.zoomBox.destroy(); 67 68 if (this.dragPan) { 69 this.dragPan.destroy(); 70 } 71 this.dragPan = null; 72 73 if (this.wheelHandler) { 74 this.wheelHandler.destroy(); 75 } 76 this.wheelHandler = null; 77 78 if (this.clickHandler) { 79 this.clickHandler.destroy(); 80 } 81 this.clickHandler = null; 82 83 if (this.zoomBox) { 84 this.zoomBox.destroy(); 85 } 86 this.zoomBox = null; 70 87 }, 71 88 trunk/openlayers/tests/list-tests.html
r5922 r5990 84 84 <li>Control/test_MousePosition.html</li> 85 85 <li>Control/test_MouseToolbar.html</li> 86 <li>Control/test_Navigation.html</li> 86 87 <li>Control/test_NavToolbar.html</li> 87 88 <li>Control/test_OverviewMap.html</li>
