patch for #636 - double-protect layer.destroy()

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3023 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-04-05 23:02:48 +00:00
parent cd6f2dd006
commit 895ba639ae

View File

@@ -188,7 +188,9 @@ OpenLayers.Layer.prototype = {
this.div = null;
this.options = null;
this.events.destroy();
if (this.events) {
this.events.destroy();
}
this.events = null;
},