From ca8993dd689b86af14de04f63013b634ac0948d3 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 19 Jul 2006 16:41:36 +0000 Subject: [PATCH] only send up arguments if not blank git-svn-id: http://svn.openlayers.org/trunk/openlayers@982 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Tile/WFS.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Tile/WFS.js b/lib/OpenLayers/Tile/WFS.js index 38b3299f65..15a7b1eec8 100644 --- a/lib/OpenLayers/Tile/WFS.js +++ b/lib/OpenLayers/Tile/WFS.js @@ -23,7 +23,10 @@ OpenLayers.Tile.WFS.prototype = * @param {OpenLayers.Size} size */ initialize: function(layer, position, bounds, urls, size) { - var newArguments = [layer, position, bounds, null, size]; + var newArguments = arguments; + if (arguments.length > 0) { + newArguments = [layer, position, bounds, null, size]; + } OpenLayers.Tile.prototype.initialize.apply(this, newArguments); this.urls = urls;