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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user