diff options
author | anekos | 2009-11-25 09:47:46 +0000 |
---|---|---|
committer | anekos | 2009-11-25 09:47:46 +0000 |
commit | 9458f2ffe5d45116c7207efd07b33766198fc7c8 (patch) | |
tree | c58d0d3a0ef0836b2318a8b86c512caa2e59cced /every.js | |
parent | 7fe4fca390659b8f0f490e88856a7b7cf56e2525 (diff) | |
download | vimperator-plugins-9458f2ffe5d45116c7207efd07b33766198fc7c8.tar.bz2 |
Fix a typo
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35989 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'every.js')
-rw-r--r-- | every.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -38,7 +38,7 @@ let PLUGIN_INFO = <name>every.js</name> <description>to run a specified command every time at specified interval.</description> <description lang="ja">指定のコマンドを指定の間隔で実行する。</description> - <version>1.2.0</version> + <version>1.2.1</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> @@ -174,8 +174,8 @@ let PLUGIN_INFO = liberator.modules.commands.addUserCommand( ['delay'], 'delay', - function (arg) { - let cmd = arg.literalArg; + function (args) { + let cmd = args.literalArg; let f = function () { if (liberator.mode == liberator.modules.modes.COMMAND_LINE) { setTimeout(f, 500); @@ -184,7 +184,7 @@ let PLUGIN_INFO = } }; let interval = args['-interval']; - setTimeout(f, msec(interval ? expandSuffix(interval) : arg.count)); + setTimeout(f, msec(interval ? expandSuffix(interval) : args.count)); }, { literal: 0, |