From 1dcf44300377522865626c2e60db9ae0a300c4d4 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 9 Oct 2008 12:03:16 +0000 Subject: [PATCH] revert overly aggressive undefined comparison normalisation - globals --- content/events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/events.js b/content/events.js index 5a5187d5..e3724dda 100644 --- a/content/events.js +++ b/content/events.js @@ -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);