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

fix some for..in loops used to iterate over arrays

This commit is contained in:
Doug Kearns
2008-09-10 20:09:23 +00:00
parent ca6048ef05
commit 23ccb9a689
5 changed files with 14 additions and 14 deletions

View File

@@ -1216,10 +1216,7 @@ liberator.Buffer = function () //{{{
var rel = link.rel && link.rel.toLowerCase();
var rels = {};
if (rel)
{
for each (let relVal in rel.split(/\s+/))
rels[relVal] = true;
}
rels[rel] = true;
if (rels.feed || (link.type && rels.alternate && !rels.stylesheet))
{
@@ -1234,7 +1231,7 @@ liberator.Buffer = function () //{{{
var lastModVerbose = new Date(window.content.document.lastModified).toLocaleString();
var lastMod = new Date(window.content.document.lastModified).toLocaleFormat("%x %X");
// FIXME: probably unportable across different language versions
// FIXME: probably not portable across different language versions
if (lastModVerbose == "Invalid Date" || new Date(window.content.document.lastModified).getFullYear() == 1970)
lastModVerbose = lastMod = null;