From 8ae0812897ed96e22d31ae37838c4f4ef3b604c0 Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 27 Nov 2008 21:12:05 +0000 Subject: Follow CVS Head. etc git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25172 d0d07461-0603-4401-acd4-de1884942a52 --- every.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'every.js') diff --git a/every.js b/every.js index 05c5762..ef077a7 100644 --- a/every.js +++ b/every.js @@ -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); } -- cgit v1.2.3