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

View File

@@ -165,7 +165,7 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
}
}
this[layersType + "LayersDiv"].innerHTML = "";
this[layersType + "Layers"] = new Array();
this[layersType + "Layers"] = [];
},

View File

@@ -83,7 +83,7 @@ OpenLayers.Control.OverviewMap = OpenLayers.Class(OpenLayers.Control, {
* control, set <mapOptions> as one of the options properties.
*/
initialize: function(options) {
this.layers = new Array();
this.layers = [];
OpenLayers.Control.prototype.initialize.apply(this, [options]);
},

View File

@@ -69,7 +69,7 @@ OpenLayers.Control.PanZoom = OpenLayers.Class(OpenLayers.Control, {
px = this.position;
// place the controls
this.buttons = new Array();
this.buttons = [];
var sz = new OpenLayers.Size(18,18);
var centered = new OpenLayers.Pixel(px.x+sz.w/2, px.y);

View File

@@ -111,7 +111,7 @@ OpenLayers.Control.PanZoomBar = OpenLayers.Class(OpenLayers.Control.PanZoom, {
px = this.position.clone();
// place the controls
this.buttons = new Array();
this.buttons = [];
var sz = new OpenLayers.Size(18,18);
var centered = new OpenLayers.Pixel(px.x+sz.w/2, px.y);