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:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user