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:
euzuro
2007-07-25 22:48:02 +00:00
parent 5f0bde51da
commit 8c552be94b
22 changed files with 44 additions and 44 deletions
+3 -3
View File
@@ -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] = [];
}
},