diff options
author | anekos | 2008-11-27 21:12:05 +0000 |
---|---|---|
committer | anekos | 2008-11-27 21:12:05 +0000 |
commit | 8ae0812897ed96e22d31ae37838c4f4ef3b604c0 (patch) | |
tree | 8441828d8912abc6b8223a17297bf89820480d77 /every.js | |
parent | 98c8e79b7790f9ee45749aec9bbd9c48e533e6e0 (diff) | |
download | vimperator-plugins-8ae0812897ed96e22d31ae37838c4f4ef3b604c0.tar.bz2 |
Follow CVS Head.
etc
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25172 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'every.js')
-rw-r--r-- | every.js | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -82,21 +82,21 @@ liberator.modules.commands.addUserCommand( ['every', 'ev'], 'every', - function (arg, bang, count) { - if (bang) { - kill(arg.arguments[0]); + function (args) { + if (args.bang) { + kill(args[0]); } else { - run(arg.string, msec(count)); + run(args.string, msec(args.count)); } }, { count: true, bang: true, argCount: '+', - completer: function (context, arg, bang) { - if (bang) { + completer: function (context, args) { + if (args.bang) { context.title = ['PID', 'every process']; - context.items = [['*', 'kill em all']].concat(every.ps.map(function (p, i) ([i.toString(), p.command]))); + context.completions = [['*', 'kill em all']].concat(every.ps.map(function (p, i) ([i.toString(), p.command]))); } else { liberator.modules.completion.ex(context); } |