From 8062f70e1b36ea793f0d3bf29f07482915b047fc Mon Sep 17 00:00:00 2001 From: fredj Date: Mon, 23 Jan 2012 13:50:39 +0100 Subject: [PATCH] Pass unmodified arguments array to the parent class --- lib/OpenLayers/Layer/MapServer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/OpenLayers/Layer/MapServer.js b/lib/OpenLayers/Layer/MapServer.js index 544c716a8a..61e9930ab9 100644 --- a/lib/OpenLayers/Layer/MapServer.js +++ b/lib/OpenLayers/Layer/MapServer.js @@ -39,9 +39,7 @@ OpenLayers.Layer.MapServer = OpenLayers.Class(OpenLayers.Layer.Grid, { * options - {Object} Hashtable of extra options to tag onto the layer */ initialize: function(name, url, params, options) { - var newArguments = []; - newArguments.push(name, url, params, options); - OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments); + OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments); this.params = OpenLayers.Util.applyDefaults( this.params, this.DEFAULT_PARAMS