diff options
author | anekos | 2008-08-13 23:57:35 +0000 |
---|---|---|
committer | anekos | 2008-08-13 23:57:35 +0000 |
commit | 0c7a6d28df06e6b3df5c10d09bc57d0c53202935 (patch) | |
tree | 551ef6a01ee6746d0f78469fa5668347ed9d8cdf /migemized_find.js | |
parent | f7764605d47df6932c93c13fb977f05ce8f2e6a5 (diff) | |
download | vimperator-plugins-0c7a6d28df06e6b3df5c10d09bc57d0c53202935.tar.bz2 |
command_menu -> name が undefined になるときに対処。原因不明。
migemized_find -> 文字ケース修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@17610 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'migemized_find.js')
-rw-r--r-- | migemized_find.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/migemized_find.js b/migemized_find.js index 160d06c..0da0f04 100644 --- a/migemized_find.js +++ b/migemized_find.js @@ -24,7 +24,8 @@ // findMode := FIND_MODE_NATIVE | FIND_MODE_MIGEMO | FIND_MODE_REGEXP - const findbarTextbox = document.getElementById('FindToolbar').getElement('findbar-textbox'); + const FindToolbar = document.getElementById('FindToolbar') + const FindbarTextbox = FindToolbar.getElement('findbar-textbox'); const DOMUtils = Components.classes["@mozilla.org/inspector/dom-utils;1"]. getService(Components.interfaces["inIDOMUtils"]); @@ -35,7 +36,7 @@ // とりあえず、アレな方法で not found を検出 function isNotFound () { - let rules = DOMUtils.getCSSStyleRules(findbarTextbox); + let rules = DOMUtils.getCSSStyleRules(FindbarTextbox); for (let i = 0; i < rules.Count(); i++) { if (rules.GetElementAt(i).selectorText.indexOf('notfound') >= 0) return true; |