Simplify parent call (don't use intermediate array)

This commit is contained in:
fredj
2012-02-20 13:54:08 +01:00
parent 3fefe91580
commit 79b539c1f9
+3 -4
View File
@@ -89,10 +89,9 @@ OpenLayers.Layer.Zoomify = OpenLayers.Class(OpenLayers.Layer.Grid, {
// initilize the Zoomify pyramid for given size // initilize the Zoomify pyramid for given size
this.initializeZoomify(size); this.initializeZoomify(size);
var newArguments = []; OpenLayers.Layer.Grid.prototype.initialize.apply(this, [
newArguments.push(name, url, size, {}, options); name, url, size, {}, options
]);
OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);
}, },
/** /**