Better cleanup.
This commit is contained in:
1 parent
80f76a91e1
commit
8c4b528ded
1 file changed
+1
@@ -297,6 +297,7 @@ ol.event.Events.prototype.handleBrowserEvent = function(evt) {
|
||||
* Destroy this Events instance.
|
||||
*/
|
||||
ol.event.Events.prototype.destroy = function() {
|
||||
this.setElement();
|
||||
for (var p in this) {
|
||||
delete this[p];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user