1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 21:24:11 +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

@@ -1178,7 +1178,7 @@ liberator.InformationList = function (id, options) //{{{
if (!incrementalFill)
{
for (i in completions)
for (let i = 0; i < completions.length; i++)
addItem(completions[i], false);
return complength;
}
@@ -1197,7 +1197,7 @@ liberator.InformationList = function (id, options) //{{{
addItem(completions[i], false);
}
return (i-startindex);
return (i - startindex);
}
/////////////////////////////////////////////////////////////////////////////}}}