Ticket #636 (closed bug: fixed)
Layer destroy() needs to be wary of double-destroys
|Reported by:||euzuro||Owned by:|
If OpenLayers.Layer.destroy() gets called twice, line 191:
will raise an error, because this.events will be nulled out.
This might happen in a custom layer which implements more than one Layer superclass, (like OpenLayers.Layer.Markers and OpenLayers.Layer.HTTPRequest, for example), since it should be calling both destroys, and both destroys will call the generic OpenLayers.Layer.destroy()