patch for #485 -- prevents script error on destruction of layer due to null tile. test pass in ff & ie7
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2226 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -66,8 +66,10 @@ OpenLayers.Layer.WMS.Untiled.prototype =
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
destroy: function() {
|
destroy: function() {
|
||||||
this.tile.destroy();
|
if (this.tile) {
|
||||||
this.tile = null;
|
this.tile.destroy();
|
||||||
|
this.tile = null;
|
||||||
|
}
|
||||||
OpenLayers.Layer.HTTPRequest.prototype.destroy.apply(this, arguments);
|
OpenLayers.Layer.HTTPRequest.prototype.destroy.apply(this, arguments);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user