Changeset 6068
- Timestamp:
- 02/07/08 23:18:13 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Tile/Image.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Tile/Image.js
r6012 r6068 78 78 destroy: function() { 79 79 if (this.imgDiv != null) { 80 OpenLayers.Event.stopObservingElement(this.imgDiv.id); 80 if (this.layerAlphaHack) { 81 OpenLayers.Event.stopObservingElement(this.imgDiv.childNodes[0].id); 82 } else { 83 OpenLayers.Event.stopObservingElement(this.imgDiv.id); 84 } 81 85 if (this.imgDiv.parentNode == this.frame) { 82 86 this.frame.removeChild(this.imgDiv); … … 247 251 } 248 252 }; 249 OpenLayers.Event.observe(this.imgDiv, 'load', 250 OpenLayers.Function.bind(onload, this)); 253 254 if (this.layerAlphaHack) { 255 OpenLayers.Event.observe(this.imgDiv.childNodes[0], 'load', 256 OpenLayers.Function.bind(onload, this)); 257 } else { 258 OpenLayers.Event.observe(this.imgDiv, 'load', 259 OpenLayers.Function.bind(onload, this)); 260 } 261 251 262 252 263 // Bind a listener to the onerror of the image div so that we
