From 4006b99e69e02db4bfe3206bad62f7de337c434a 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 d7276ad8f..9d7b3dcd2 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; }; /******************************************************************************/