1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 13:32:27 +01:00

normalise comparisons with undefined

This commit is contained in:
Doug Kearns
2008-10-09 10:52:19 +00:00
parent b9a24708c5
commit 8c585cd560
6 changed files with 10 additions and 10 deletions

View File

@@ -1045,7 +1045,7 @@ liberator.Buffer = function () //{{{
// 0 if loading, 1 if loaded or 2 if load failed
get loaded()
{
if (typeof window.content.document.pageIsFullyLoaded != "undefined")
if (window.content.document.pageIsFullyLoaded !== undefined)
return window.content.document.pageIsFullyLoaded;
else
return 0; // in doubt return "loading"