2170_tileEvents.html: fixed memory leak with tile events. p=rcoup, r=me (see #2170)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9760 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -110,12 +110,12 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
if (this.imgDiv != null) {
|
||||
if (this.layerAlphaHack) {
|
||||
// unregister the "load" handler
|
||||
OpenLayers.Event.stopObservingElement(this.imgDiv.childNodes[0].id);
|
||||
OpenLayers.Event.stopObservingElement(this.imgDiv.childNodes[0]);
|
||||
}
|
||||
|
||||
// unregister the "load" and "error" handlers. Only the "error" handler if
|
||||
// this.layerAlphaHack is true.
|
||||
OpenLayers.Event.stopObservingElement(this.imgDiv.id);
|
||||
OpenLayers.Event.stopObservingElement(this.imgDiv);
|
||||
|
||||
if (this.imgDiv.parentNode == this.frame) {
|
||||
this.frame.removeChild(this.imgDiv);
|
||||
|
||||
Reference in New Issue
Block a user