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:
euzuro
2007-07-23 15:03:42 +00:00
parent 8ee8522e0a
commit e8a4938258
5 changed files with 10 additions and 11 deletions

View File

@@ -201,7 +201,7 @@ OpenLayers.Layer.MapServer.Untiled = OpenLayers.Class(
this.events.triggerEvent("loadend");
}
OpenLayers.Event.observe(this.tile.imgDiv, 'load',
onload.bindAsEventListener(this));
onload.bind(this));
} else {
this.tile.moveTo(tileBounds, pos);
}