only send up arguments if not blank

git-svn-id: http://svn.openlayers.org/trunk/openlayers@982 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-19 16:41:36 +00:00
parent 2e67a6aedf
commit ca8993dd68

View File

@@ -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;