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

use let when declaring loop variables

This commit is contained in:
Doug Kearns
2008-09-18 12:07:10 +00:00
parent 65f1b0d53f
commit e64a7397df
18 changed files with 186 additions and 186 deletions

View File

@@ -1269,7 +1269,7 @@ liberator.ItemList = function (id) //{{{
var tbody = doc.createElement("tbody");
table.appendChild(tbody);
for (var i = 0; i < completions.length; i++)
for (let i = 0; i < completions.length; i++)
{
var elem = completions[i];
if (i >= listOffset && i - listOffset < maxItems)
@@ -1529,12 +1529,12 @@ liberator.StatusLine = function () //{{{
{
progressStr = "[";
var done = Math.floor(progress * 20);
for (var i = 0; i < done; i++)
for (let i = 0; i < done; i++)
progressStr += "=";
progressStr += ">";
for (var i = 19; i > done; i--)
for (let i = 19; i > done; i--)
progressStr += " ";
progressStr += "]";