as universally approved on discussions on dev list, replace new Object() with {}. all tests pass ff & ie6
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3814 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -171,7 +171,7 @@ OpenLayers.Event = {
|
||||
|
||||
//if observers cache has not yet been created, create it
|
||||
if (!this.observers) {
|
||||
this.observers = new Object();
|
||||
this.observers = {};
|
||||
}
|
||||
|
||||
//if not already assigned, make a new unique cache ID
|
||||
@@ -398,7 +398,7 @@ OpenLayers.Events = OpenLayers.Class({
|
||||
this.element = element;
|
||||
this.eventTypes = eventTypes;
|
||||
this.fallThrough = fallThrough;
|
||||
this.listeners = new Object();
|
||||
this.listeners = {};
|
||||
|
||||
// keep a bound copy of handleBrowserEvent() so that we can
|
||||
// pass the same function to both Event.observe() and .stopObserving()
|
||||
@@ -589,7 +589,7 @@ OpenLayers.Events = OpenLayers.Class({
|
||||
|
||||
// prep evt object with object & div references
|
||||
if (evt == null) {
|
||||
evt = new Object();
|
||||
evt = {};
|
||||
}
|
||||
evt.object = this.object;
|
||||
evt.element = this.element;
|
||||
|
||||
Reference in New Issue
Block a user