Changeset 5465
- Timestamp:
- 12/17/07 03:03:01 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Layer/GeoRSS.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/Text.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Layer/GeoRSS.js
r5400 r5465 76 76 */ 77 77 destroy: function() { 78 // Warning: Layer.Markers.destroy() must be called prior to calling 79 // clearFeatures() here, otherwise we leak memory. Indeed, if 80 // Layer.Markers.destroy() is called after clearFeatures(), it won't be 81 // able to remove the marker image elements from the layer's div since 82 // the markers will have been destroyed by clearFeatures(). 83 OpenLayers.Layer.Markers.prototype.destroy.apply(this, arguments); 78 84 this.clearFeatures(); 79 85 this.features = null; 80 OpenLayers.Layer.Markers.prototype.destroy.apply(this, arguments);81 86 }, 82 87 trunk/openlayers/lib/OpenLayers/Layer/Text.js
r5412 r5465 87 87 */ 88 88 destroy: function() { 89 // Warning: Layer.Markers.destroy() must be called prior to calling 90 // clearFeatures() here, otherwise we leak memory. Indeed, if 91 // Layer.Markers.destroy() is called after clearFeatures(), it won't be 92 // able to remove the marker image elements from the layer's div since 93 // the markers will have been destroyed by clearFeatures(). 94 OpenLayers.Layer.Markers.prototype.destroy.apply(this, arguments); 89 95 this.clearFeatures(); 90 96 this.features = null; 91 OpenLayers.Layer.Markers.prototype.destroy.apply(this, arguments);92 97 }, 93 98
