as universally approved on discussions on dev list, replace new Object() with {}. all tests pass ff & ie6
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3814 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -315,7 +315,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
addOptions: function (newOptions) {
|
||||
|
||||
if (this.options == null) {
|
||||
this.options = new Object();
|
||||
this.options = {};
|
||||
}
|
||||
|
||||
// update our copy for clone
|
||||
@@ -569,7 +569,7 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
// resolution-related properties that we find in either the layer's
|
||||
// 'options' array or from the map.
|
||||
//
|
||||
var confProps = new Object();
|
||||
var confProps = {};
|
||||
for(var i=0; i < props.length; i++) {
|
||||
var property = props[i];
|
||||
confProps[property] = this.options[property] || this.map[property];
|
||||
|
||||
Reference in New Issue
Block a user