Simplify parent call (don't use intermediate array)
This commit is contained in:
@@ -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);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user