From 0b749e4e737e432dc33ba900f5063f9051967938 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 17 Oct 2008 11:45:49 +0000 Subject: [PATCH] minor refactoring of :mapclear action --- content/mappings.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/content/mappings.js b/content/mappings.js index b6f2eea7..ad711984 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -223,11 +223,7 @@ function Mappings() //{{{ commands.add([ch + "mapc[lear]"], "Remove all mappings" + modeDescription, - function () - { - for (let i = 0; i < modes.length; i++) - mappings.removeAll(modes[i]); - }, + function () { modes.forEach(function (mode) { mappings.removeAll(mode); }); }, { argCount: "0" }); commands.add([ch + "unm[ap]"],