as universally approved on discussions on dev list, replace new Array() with []. all tests pass ff & ie6
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3815 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -187,7 +187,7 @@ OpenLayers.Event = {
|
||||
|
||||
//if there is not yet a hash entry for this element, add one
|
||||
if (!this.observers[cacheID]) {
|
||||
this.observers[cacheID] = new Array();
|
||||
this.observers[cacheID] = [];
|
||||
}
|
||||
|
||||
//add a new observer to this element's list
|
||||
@@ -445,7 +445,7 @@ OpenLayers.Events = OpenLayers.Class({
|
||||
*/
|
||||
addEventType: function(eventName) {
|
||||
if (!this.listeners[eventName]) {
|
||||
this.listeners[eventName] = new Array();
|
||||
this.listeners[eventName] = [];
|
||||
}
|
||||
},
|
||||
|
||||
@@ -573,7 +573,7 @@ OpenLayers.Events = OpenLayers.Class({
|
||||
*/
|
||||
remove: function(type) {
|
||||
if (this.listeners[type] != null) {
|
||||
this.listeners[type] = new Array();
|
||||
this.listeners[type] = [];
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user