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
@@ -588,7 +588,7 @@ OpenLayers.Layer = OpenLayers.Class({
if ((confProps.scales != null) || (confProps.resolutions != null)) {
//preset levels
if (confProps.scales != null) {
confProps.resolutions = new Array();
confProps.resolutions = [];
for(var i = 0; i < confProps.scales.length; i++) {
var scale = confProps.scales[i];
confProps.resolutions[i] =
@@ -601,7 +601,7 @@ OpenLayers.Layer = OpenLayers.Class({
} else {
//maxResolution and numZoomLevels based calculation
confProps.resolutions = new Array();
confProps.resolutions = [];
// determine maxResolution
if (confProps.minScale) {
@@ -658,7 +658,7 @@ OpenLayers.Layer = OpenLayers.Class({
var lastIndex = confProps.resolutions.length - 1;
this.minResolution = confProps.resolutions[lastIndex];
this.scales = new Array();
this.scales = [];
for(var i = 0; i < confProps.resolutions.length; i++) {
this.scales[i] =
OpenLayers.Util.getScaleFromResolution(confProps.resolutions[i],