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:
@@ -298,7 +298,7 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
// Note that this is ok, as updateSize() does nothing if the
|
||||
// map's size has not actually changed.
|
||||
OpenLayers.Event.observe(window, 'resize',
|
||||
this.updateSize.bindAsEventListener(this));
|
||||
this.updateSize.bind(this));
|
||||
}
|
||||
|
||||
// only append link stylesheet if the theme property is set
|
||||
@@ -343,7 +343,7 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
|
||||
this.popups = new Array();
|
||||
|
||||
this.unloadDestroy = this.destroy.bindAsEventListener(this);
|
||||
this.unloadDestroy = this.destroy.bind(this);
|
||||
|
||||
|
||||
// always call map.destroy()
|
||||
|
||||
Reference in New Issue
Block a user