fix for #847 - use bind() instead of bindAsEventListener()= when appropriate
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3786 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -194,7 +194,7 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
http://openlayers.org/pipermail/dev/2007-January/000205.html
|
||||
|
||||
OpenLayers.Event.observe( this.imgDiv, "load",
|
||||
this.checkImgURL.bindAsEventListener(this) );
|
||||
this.checkImgURL.bind(this) );
|
||||
*/
|
||||
this.frame.appendChild(this.imgDiv);
|
||||
this.layer.div.appendChild(this.frame);
|
||||
@@ -223,8 +223,7 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
||||
this.events.triggerEvent("loadend");
|
||||
}
|
||||
}
|
||||
OpenLayers.Event.observe(this.imgDiv, 'load',
|
||||
onload.bindAsEventListener(this));
|
||||
OpenLayers.Event.observe(this.imgDiv, 'load', onload.bind(this));
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user