From a179821f3d89eb2e639688a150ebf468791b40fe Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 21 Mar 2015 08:22:34 -0400 Subject: [PATCH] #1057: cleanup code --- platform/firefox/vapi-background.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 30f19f1..0584e70 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -1847,6 +1847,11 @@ vAPI.contextMenu.remove = function() { for ( var win of vAPI.tabs.getWindows() ) { this.unregister(win.document); } + + this.menuItemId = null; + this.menuLabel = null; + this.contexts = null; + this.onCommand = null; }; /******************************************************************************/