aboutsummaryrefslogtreecommitdiffstats
path: root/ime_controller.js
diff options
context:
space:
mode:
authorteramako2008-10-15 15:28:45 +0000
committerteramako2008-10-15 15:28:45 +0000
commit3dc8e4e07e475876801ff602bd9e047c92203934 (patch)
treed41e994a207d77c8ba74c80bce7a0879b2517c10 /ime_controller.js
parent4ca3ee635c6624add6514b2b8a5675ef61c67813 (diff)
downloadvimperator-plugins-3dc8e4e07e475876801ff602bd9e047c92203934.tar.bz2
namespaceの省略(vimperator CVS headと旧版との互換性維持のため)
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@21395 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'ime_controller.js')
-rw-r--r--ime_controller.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ime_controller.js b/ime_controller.js
index bc8588c..a3dc97c 100644
--- a/ime_controller.js
+++ b/ime_controller.js
@@ -33,7 +33,6 @@
*
*/
-if(!liberator.plugins) vimperator.plugins = {};
liberator.plugins.imeController = (function(){
var inputElement = document.getAnonymousElementByAttribute(
document.getElementById('liberator-commandline-command'),'anonid','input'
@@ -52,8 +51,8 @@ liberator.plugins.imeController = (function(){
liberator.plugins.imeController.set(inputElement, getMode('ex_ime_mode'));
});
preExec(events,'onEscape',function(){
- if (liberator.mode == liberator.modes.INSERT && (liberator.modes.extended & liberator.modes.TEXTAREA) && !liberator.options.insertmode){
- var inputField = liberator.buffer.lastInputField;
+ if (liberator.mode == modes.INSERT && (modes.extended & modes.TEXTAREA) && !options.insertmode){
+ var inputField = buffer.lastInputField;
if (liberator.plugins.imeController.set(inputField, getMode('textarea_ime_mode'))){
inputField.blur();
setTimeout(function(){inputField.focus();},0);