1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 01:04:12 +01:00

fixed some muttator specific errors in the console

This commit is contained in:
Martin Stubenschrott
2008-08-02 17:04:45 +00:00
parent b724e81194
commit f762f9e35b
4 changed files with 28 additions and 26 deletions

View File

@@ -307,8 +307,8 @@ liberator.Events = function () //{{{
}
function exitPopupMode()
{
// gContextMenu is set to NULL by firefox, when a context menu is closed
if (!gContextMenu && !activeMenubar)
// gContextMenu is set to NULL by Firefox, when a context menu is closed
if (typeof gContextMenu != "undefined" && gContextMenu == NULL && !activeMenubar)
liberator.modes.remove(liberator.modes.MENU);
}
function enterMenuMode()
@@ -662,7 +662,8 @@ liberator.Events = function () //{{{
// removeEventListeners() to avoid mem leaks
window.dump("TODO: remove all eventlisteners\n");
getBrowser().removeProgressListener(this.progressListener);
if (typeof(getBrowser) != "undefined")
getBrowser().removeProgressListener(this.progressListener);
window.removeEventListener("popupshown", enterPopupMode, true);
window.removeEventListener("popuphidden", exitPopupMode, true);