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
+4 -5
View File
@@ -87,12 +87,11 @@ OpenLayers.Layer.Zoomify = OpenLayers.Class(OpenLayers.Layer.Grid, {
initialize: function(name, url, size, options) { initialize: function(name, url, size, options) {
// 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);
}, },
/** /**