Skip to content

Commit

Permalink
Kill GM_rmc zombies by clearing references via DOM.
Browse files Browse the repository at this point in the history
Fixes #1608
  • Loading branch information
arantius committed Aug 30, 2012
1 parent e555cbe commit 007c4c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/browser.xul
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
accesskey="&menu.commands.accesskey;" accesskey="&menu.commands.accesskey;"
label="&menu.commands;" label="&menu.commands;"
onpopupshowing="event.stopPropagation();" onpopupshowing="event.stopPropagation();"
onpopuphiding="GM_MenuCommander.onPopupHiding(this);"
> >
<menupopup/> <menupopup/>
</menu> </menu>
Expand Down
4 changes: 4 additions & 0 deletions content/menucommander.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ GM_MenuCommander.createMenuItem = function(command) {
return menuItem; return menuItem;
}; };


GM_MenuCommander.onPopupHiding = function(aMenuPopup) {
GM_util.emptyEl(aMenuPopup);
}

GM_MenuCommander.onPopupShowing = function(aMenuPopup) { GM_MenuCommander.onPopupShowing = function(aMenuPopup) {
GM_util.emptyEl(aMenuPopup); GM_util.emptyEl(aMenuPopup);


Expand Down

0 comments on commit 007c4c4

Please sign in to comment.