Better cleanup.
This commit is contained in:
@@ -297,6 +297,7 @@ ol.event.Events.prototype.handleBrowserEvent = function(evt) {
|
|||||||
* Destroy this Events instance.
|
* Destroy this Events instance.
|
||||||
*/
|
*/
|
||||||
ol.event.Events.prototype.destroy = function() {
|
ol.event.Events.prototype.destroy = function() {
|
||||||
|
this.setElement();
|
||||||
for (var p in this) {
|
for (var p in this) {
|
||||||
delete this[p];
|
delete this[p];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user