diff options
author | anekos | 2015-09-30 23:35:37 +0900 |
---|---|---|
committer | anekos | 2015-09-30 23:35:37 +0900 |
commit | 827f6d6f54de9199f45d1f138d5725cb84131ab8 (patch) | |
tree | 203beb776c5de780d563bb2f6a120aa4f4ce84bb /video-controller.js | |
parent | de561f4b9cc35ff2cdcf63fdac2d243c0becd7eb (diff) | |
download | vimperator-plugins-827f6d6f54de9199f45d1f138d5725cb84131ab8.tar.bz2 |
Unlets
Diffstat (limited to 'video-controller.js')
-rw-r--r-- | video-controller.js | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/video-controller.js b/video-controller.js index 9df5b55..d7a5d6b 100644 --- a/video-controller.js +++ b/video-controller.js @@ -126,19 +126,22 @@ let INFO = xml` }, { subCommands: [ - let (o = o) new Command( - [o[0] + '[' + o.slice(1) + ']'], - o + ' <video>', - function (args) { - lastCommand = o; - lastArgs = args; - hints.show(HintName); - }, - { - literal: 0 - } - ) - for (o in controlls) + (function () { + let o = it; + return new Command( + [o[0] + '[' + o.slice(1) + ']'], + o + ' <video>', + function (args) { + lastCommand = o; + lastArgs = args; + hints.show(HintName); + }, + { + literal: 0 + } + ) + })() + for (it in controlls) ], }, true |