mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
code review: this is needed to keep closure alive
This commit is contained in:
parent
040a3ea5ef
commit
7884cf70f6
@ -50,6 +50,7 @@
|
|||||||
let shutdown = function(ev) {
|
let shutdown = function(ev) {
|
||||||
if ( ev.target === this ) {
|
if ( ev.target === this ) {
|
||||||
this.removeEventListener('unload', shutdown);
|
this.removeEventListener('unload', shutdown);
|
||||||
|
locationChangeListener = null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.addEventListener('unload', shutdown);
|
this.addEventListener('unload', shutdown);
|
||||||
|
Loading…
Reference in New Issue
Block a user