Pass unmodified arguments array to the parent class

This commit is contained in:
fredj
2012-01-23 13:50:39 +01:00
parent 586a39ca30
commit 8062f70e1b
+1 -3
View File
@@ -39,9 +39,7 @@ OpenLayers.Layer.MapServer = OpenLayers.Class(OpenLayers.Layer.Grid, {
* options - {Object} Hashtable of extra options to tag onto the layer * options - {Object} Hashtable of extra options to tag onto the layer
*/ */
initialize: function(name, url, params, options) { initialize: function(name, url, params, options) {
var newArguments = []; OpenLayers.Layer.Grid.prototype.initialize.apply(this, arguments);
newArguments.push(name, url, params, options);
OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);
this.params = OpenLayers.Util.applyDefaults( this.params = OpenLayers.Util.applyDefaults(
this.params, this.DEFAULT_PARAMS this.params, this.DEFAULT_PARAMS