Changeset 6447
- Timestamp:
- 03/06/08 13:24:18 (6 months ago)
- Files:
-
- trunk/openlayers/examples/events.html (added)
- trunk/openlayers/lib/OpenLayers/Control.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Control.js
r6435 r6447 179 179 destroy: function () { 180 180 if(this.events) { 181 if(this.eventListeners) { 182 this.events.un(this.eventListeners); 183 } 181 184 this.events.destroy(); 182 185 this.events = null; 183 186 } 187 this.eventListeners = null; 188 184 189 // eliminate circular references 185 190 if (this.handler) { trunk/openlayers/lib/OpenLayers/Layer.js
r6435 r6447 316 316 317 317 if (this.events) { 318 if(this.eventListeners) { 319 this.events.un(this.eventListeners); 320 } 318 321 this.events.destroy(); 319 322 } 323 this.eventListeners = null; 320 324 this.events = null; 321 325 }, trunk/openlayers/lib/OpenLayers/Map.js
r6444 r6447 546 546 this.viewPortDiv = null; 547 547 548 if(this.eventListeners) { 549 this.events.un(this.eventListeners); 550 this.eventListeners = null; 551 } 548 552 this.events.destroy(); 549 553 this.events = null;
