From 7884cf70f69e7a3e9b0834677538dc3ad2b9b784 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 6 Mar 2016 21:27:28 -0500 Subject: [PATCH] code review: this is needed to keep closure alive --- platform/firefox/frameScript.js | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/firefox/frameScript.js b/platform/firefox/frameScript.js index 05e5ceff7..55e0757ce 100644 --- a/platform/firefox/frameScript.js +++ b/platform/firefox/frameScript.js @@ -50,6 +50,7 @@ let shutdown = function(ev) { if ( ev.target === this ) { this.removeEventListener('unload', shutdown); + locationChangeListener = null; } }; this.addEventListener('unload', shutdown);