diff --git a/lib/OpenLayers/Format/WFS.js b/lib/OpenLayers/Format/WFS.js index 07fe168f44..ac3c7f7e43 100644 --- a/lib/OpenLayers/Format/WFS.js +++ b/lib/OpenLayers/Format/WFS.js @@ -25,7 +25,7 @@ OpenLayers.Format.WFS.prototype = */ initialize: function(options, layer) { - OpenLayers.Format.GML.prototype.initialize.apply(this, arguments); + OpenLayers.Format.GML.prototype.initialize.apply(this, [options]); this.layer = layer; if (this.layer.featureNS) { this.featureNS = this.layer.featureNS;