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
This commit is contained in:
euzuro
2006-08-09 03:59:06 +00:00
parent 69876208f4
commit c0e06dae19

View File

@@ -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();
}
},