diff options
author | anekos | 2010-03-25 14:03:40 +0000 |
---|---|---|
committer | anekos | 2010-03-25 14:03:40 +0000 |
commit | aed6d117ce8af27fd986a4d6a11a6c64898ceff4 (patch) | |
tree | f8b5d8f277a829d9737dd630824bbe728e47f752 | |
parent | 9426ba9901755a405932426aeb3c476ac40b5950 (diff) | |
download | vimperator-plugins-aed6d117ce8af27fd986a4d6a11a6c64898ceff4.tar.bz2 |
外部から使える様に
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37089 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-x | x-hint.js | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -163,12 +163,18 @@ let INFO = true ); + function showHintsWith (mode, xpath) { + last.xpath = xpath; + hints.show(mode); + } + + __context__.show = showHintsWith; + commands.addUserCommand( ['xh[int]'], description, function (args) { - last.xpath = args.literalArg; - hints.show(args[0]); + showHintsWith(args[0], args.literalArg); }, { literal: 1 @@ -194,9 +200,8 @@ let INFO = ['xhintdo', 'xhdo'], 'Run js-code with X-Hint', function (args) { - last.xpath = args[0]; js = args.literalArg; - hints.show(hintModeText); + showHintsWith(hintModeText, args[0]); }, { literal: 1, |