aboutsummaryrefslogtreecommitdiffstats
path: root/video-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'video-controller.js')
-rw-r--r--video-controller.js29
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