From a31b8e444fc419ee5299e40644cc69026f59735d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Junod?= Date: Mon, 22 Aug 2011 06:56:28 +0000 Subject: [PATCH] Simplify Layer.HTTPRequest initialize function. r=erilem (pullup #3470) git-svn-id: http://svn.openlayers.org/trunk/openlayers@12267 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/HTTPRequest.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/OpenLayers/Layer/HTTPRequest.js b/lib/OpenLayers/Layer/HTTPRequest.js index 3b7a154fcd..ddf3d51073 100644 --- a/lib/OpenLayers/Layer/HTTPRequest.js +++ b/lib/OpenLayers/Layer/HTTPRequest.js @@ -58,9 +58,7 @@ OpenLayers.Layer.HTTPRequest = OpenLayers.Class(OpenLayers.Layer, { * options - {Object} Hashtable of extra options to tag onto the layer */ initialize: function(name, url, params, options) { - var newArguments = arguments; - newArguments = [name, options]; - OpenLayers.Layer.prototype.initialize.apply(this, newArguments); + OpenLayers.Layer.prototype.initialize.apply(this, [name, options]); this.url = url; this.params = OpenLayers.Util.extend( {}, params); },