mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 22:45:46 +01:00
revert overly aggressive undefined comparison normalisation - globals
This commit is contained in:
@@ -361,7 +361,7 @@ liberator.Events = function () //{{{
|
|||||||
function exitPopupMode()
|
function exitPopupMode()
|
||||||
{
|
{
|
||||||
// gContextMenu is set to NULL by Firefox, when a context menu is closed
|
// 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);
|
liberator.modes.remove(liberator.modes.MENU);
|
||||||
}
|
}
|
||||||
function enterMenuMode()
|
function enterMenuMode()
|
||||||
@@ -718,7 +718,7 @@ liberator.Events = function () //{{{
|
|||||||
// removeEventListeners() to avoid mem leaks
|
// removeEventListeners() to avoid mem leaks
|
||||||
liberator.dump("TODO: remove all eventlisteners");
|
liberator.dump("TODO: remove all eventlisteners");
|
||||||
|
|
||||||
if (getBrowser !== undefined)
|
if (typeof getBrowser != "undefined")
|
||||||
getBrowser().removeProgressListener(this.progressListener);
|
getBrowser().removeProgressListener(this.progressListener);
|
||||||
|
|
||||||
window.removeEventListener("popupshown", enterPopupMode, true);
|
window.removeEventListener("popupshown", enterPopupMode, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user