From 644e6c5749c7d296ef42c83dd4722ad862c7c720 Mon Sep 17 00:00:00 2001 From: drry Date: Thu, 6 Nov 2008 09:41:41 +0000 Subject: * cosmetic changes. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22830 d0d07461-0603-4401-acd4-de1884942a52 --- walk-input.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'walk-input.js') diff --git a/walk-input.js b/walk-input.js index cf84325..885a96c 100644 --- a/walk-input.js +++ b/walk-input.js @@ -9,16 +9,16 @@ // If you type M-i first, the focus moves to "". // Then if you type M-i once more, the focus moves to "". // -// +// // // xxx // yyy // zzz // -// +// -(function(){ +(function() { var walkinput = function() { var win = document.commandDispatcher.focusedWindow; var d = win.document; @@ -29,8 +29,8 @@ var walkinput = function() { var focused = document.commandDispatcher.focusedElement; var current = null; var next = null; - for (var i = 0; i < list.snapshotLength; ++i) { - var e = list.snapshotItem(i); + for (let i = 0; i < list.snapshotLength; ++i) { + let e = list.snapshotItem(i); if (e == focused) { current = e; } else if (current && next == null) { @@ -44,8 +44,8 @@ var walkinput = function() { } }; -liberator.modules.mappings.add([liberator.modules.modes.NORMAL], [''], 'Walk Input Fields', function() { walkinput(); }); -liberator.modules.mappings.add([liberator.modules.modes.INSERT], [''], 'Walk Input Fields', function() { walkinput(); }); -liberator.modules.mappings.add([liberator.modules.modes.NORMAL], [''], 'Walk Input Fields', function() { walkinput(); }); -liberator.modules.mappings.add([liberator.modules.modes.INSERT], [''], 'Walk Input Fields', function() { walkinput(); }); +liberator.modules.mappings.add([liberator.modules.modes.NORMAL], [''], 'Walk Input Fields', walkinput); +liberator.modules.mappings.add([liberator.modules.modes.INSERT], [''], 'Walk Input Fields', walkinput); +liberator.modules.mappings.add([liberator.modules.modes.NORMAL], [''], 'Walk Input Fields', walkinput); +liberator.modules.mappings.add([liberator.modules.modes.INSERT], [''], 'Walk Input Fields', walkinput); })(); -- cgit v1.2.3