1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 00:47:59 +01:00

prefer let over var in Mappings, Modes, and Options

This commit is contained in:
Doug Kearns
2008-12-21 00:28:19 +11:00
parent 29817b5d72
commit 5b4a1d11f8
4 changed files with 27 additions and 27 deletions

View File

@@ -54,13 +54,13 @@ const modes = (function () //{{{
return "-- PASS THROUGH --";
// when recording a macro
var macromode = "";
let macromode = "";
if (modes.isRecording)
macromode = "recording";
else if (modes.isReplaying)
macromode = "replaying";
var ext = "";
let ext = "";
if (extended & modes.MENU) // TODO: desirable?
ext += " (menu)";
ext += " --" + macromode;
@@ -199,7 +199,7 @@ const modes = (function () //{{{
pop: function (silent)
{
var a = modeStack.pop();
let a = modeStack.pop();
if (a)
this.set(a[0], a[1], silent);
else