Simplify parent call (don't use intermediate array)
This commit is contained in:
@@ -75,10 +75,9 @@ OpenLayers.Layer.XYZ = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
|||||||
options.projection = new OpenLayers.Projection('EPSG:900913');
|
options.projection = new OpenLayers.Projection('EPSG:900913');
|
||||||
options.numZoomLevels = 19;
|
options.numZoomLevels = 19;
|
||||||
}
|
}
|
||||||
url = url || this.url;
|
OpenLayers.Layer.Grid.prototype.initialize.apply(this, [
|
||||||
name = name || this.name;
|
name || this.name, url || this.url, {}, options
|
||||||
var newArguments = [name, url, {}, options];
|
]);
|
||||||
OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user