[OpenLayers-Commits] r12267 - trunk/openlayers/lib/OpenLayers/Layer

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Aug 22 02:56:29 EDT 2011


Author: fredj
Date: 2011-08-21 23:56:28 -0700 (Sun, 21 Aug 2011)
New Revision: 12267

Modified:
   trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js
Log:
Simplify Layer.HTTPRequest initialize function. r=erilem (pullup #3470)

Modified: trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js	2011-08-21 16:59:30 UTC (rev 12266)
+++ trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js	2011-08-22 06:56:28 UTC (rev 12267)
@@ -58,9 +58,7 @@
      * 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);
     },



More information about the Commits mailing list