1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 18:24:11 +01:00

revert overly aggressive undefined comparison normalisation - globals

This commit is contained in:
Doug Kearns
2008-10-09 12:03:16 +00:00
parent 10df19632c
commit 1dcf443003

View File

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