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:
@@ -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);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
|
||||
Reference in New Issue
Block a user