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:
@@ -23,7 +23,10 @@ OpenLayers.Tile.WFS.prototype =
|
|||||||
* @param {OpenLayers.Size} size
|
* @param {OpenLayers.Size} size
|
||||||
*/
|
*/
|
||||||
initialize: function(layer, position, bounds, urls, 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);
|
OpenLayers.Tile.prototype.initialize.apply(this, newArguments);
|
||||||
|
|
||||||
this.urls = urls;
|
this.urls = urls;
|
||||||
|
|||||||
Reference in New Issue
Block a user