Changeset 2894
- Timestamp:
- 03/25/07 20:50:31 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Feature.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Marker.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Popup.js (modified) (1 diff)
- trunk/openlayers/tests/test_Events.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Feature.js
r2803 r2894 60 60 } 61 61 62 if (this.events) { 63 this.events.destroy(); 64 } 62 65 this.events = null; 66 63 67 this.layer = null; 64 68 this.id = null; trunk/openlayers/lib/OpenLayers/Layer.js
r2543 r2894 155 155 this.div = null; 156 156 this.options = null; 157 158 this.events.destroy(); 157 159 this.events = null; 158 160 }, trunk/openlayers/lib/OpenLayers/Marker.js
r2817 r2894 48 48 destroy: function() { 49 49 this.map = null; 50 50 51 this.events.destroy(); 52 this.events = null; 53 51 54 if (this.icon != null) { 52 55 this.icon.destroy(); trunk/openlayers/lib/OpenLayers/Popup.js
r2803 r2894 118 118 if (this.map != null) { 119 119 this.map.removePopup(this); 120 } 120 this.map = null; 121 } 122 this.events.destroy(); 123 this.events = null; 121 124 this.div = null; 122 this.map = null;123 125 }, 124 126 trunk/openlayers/tests/test_Events.html
r2867 r2894 213 213 start + OpenLayers.Events.prototype.BROWSER_EVENTS.length + 1, 214 214 "construction increases the number of event observers"); 215 events = events.destroy(); 215 events.destroy(); 216 events = null; 216 217 t.eq(OpenLayers.Event.observers.length, start, 217 218 "destruction restores the number of event observers");
