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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user