diff options
author | anekos | 2008-11-01 08:45:54 +0000 |
---|---|---|
committer | anekos | 2008-11-01 08:45:54 +0000 |
commit | 8540a08cc4517749bbc941ed6c8bad081e49c7fc (patch) | |
tree | d346ba135966ed7b62ad5f7eddaf450790981ea6 /googlekanji.js | |
parent | 831b9438b243114d44f13cd3d9814d3f0a94e801 (diff) | |
download | vimperator-plugins-8540a08cc4517749bbc941ed6c8bad081e49c7fc.tar.bz2 |
CVS Head対応。
他。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22507 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'googlekanji.js')
-rw-r--r-- | googlekanji.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/googlekanji.js b/googlekanji.js index 5edfc4c..c5acc26 100644 --- a/googlekanji.js +++ b/googlekanji.js @@ -13,7 +13,7 @@ // が開き、補完が可能になるので、正しそうな漢字を選びます。 // すると、クリップボードにその漢字がコピーされます。 -(function () { try { +(function () { var copycompl = []; @@ -43,7 +43,7 @@ } cnta.sort(function (a, b) b[1] - a[1]); copycompl = cnta; - liberator.commandline.open(":", "gkcopy ", liberator.modes.EX); + commandline.open(":", "gkcopy ", modes.EX); }; req.onreadystatechange = function (aEvt) { if (req.readyState == 4 && req.status == 200) { @@ -53,7 +53,7 @@ req.send(null); } - liberator.commands.addUserCommand( + commands.addUserCommand( ['gkanji', 'googlekanji'], 'Google kanji', function (arg) getKanji(arg.string) @@ -72,7 +72,7 @@ clip.setData(trans, null, clipid.kGlobalClipboard); } - liberator.commands.addUserCommand( + commands.addUserCommand( ['gkcopy'], 'Google kanji', copyToClipboard, @@ -80,4 +80,4 @@ ); -} catch (e) { liberator.log(e) } })(); +})(); |