From c0e06dae19e110a3db695f4d802a9d7bba10af17 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 9 Aug 2006 03:59:06 +0000 Subject: [PATCH] grid is always loaded. check only if we have a map git-svn-id: http://svn.openlayers.org/trunk/openlayers@1140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WMS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/WMS.js b/lib/OpenLayers/Layer/WMS.js index d852f2f7ae..53c3e19728 100644 --- a/lib/OpenLayers/Layer/WMS.js +++ b/lib/OpenLayers/Layer/WMS.js @@ -118,7 +118,7 @@ OpenLayers.Layer.WMS.prototype = var newArguments = [upperParams]; OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this, newArguments); - if (this.grid != null) { + if (this.map != null) { this._initTiles(); } },