From 8540a08cc4517749bbc941ed6c8bad081e49c7fc Mon Sep 17 00:00:00 2001 From: anekos Date: Sat, 1 Nov 2008 08:45:54 +0000 Subject: CVS Head対応。 他。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22507 d0d07461-0603-4401-acd4-de1884942a52 --- googlekanji.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'googlekanji.js') 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) } })(); +})(); -- cgit v1.2.3