diff options
author | hogelog | 2008-12-14 00:49:52 +0000 |
---|---|---|
committer | hogelog | 2008-12-14 00:49:52 +0000 |
commit | 94943ecf9c94135df36f104b2e0886d9f804de6d (patch) | |
tree | 66ca39c086ee5beed082f8b3f2af3bb4fe2d92ae /char-hints-mod2.js | |
parent | d4953e527e3f80ebeabe6ae74670a0f78f6a8bd6 (diff) | |
download | vimperator-plugins-94943ecf9c94135df36f104b2e0886d9f804de6d.tar.bz2 |
* fix bug: no hints are visible in frame page.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26663 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'char-hints-mod2.js')
-rw-r--r-- | char-hints-mod2.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/char-hints-mod2.js b/char-hints-mod2.js index cd322a5..74eb418 100644 --- a/char-hints-mod2.js +++ b/char-hints-mod2.js @@ -55,14 +55,18 @@ set histchars="hjkl" => show char-hint use h, j, k, l. return chars;
} //}}}
- function showCharHints() //{{{
+ function showCharHints(win) //{{{
{
- for(let elem in buffer.evaluateXPath("//*[@liberator:highlight and @number]", window.content.document))
+
+ if (!win)
+ win = window.content;
+ for(let elem in buffer.evaluateXPath("//*[@liberator:highlight and @number]", win.document))
{
let num = elem.getAttribute("number");
let hintchar = num2chars(parseInt(num, 10));
elem.setAttribute("hintchar", hintchar);
}
+ Array.forEach(win.frames, showCharHints);
} //}}}
var hintContext = hints.addMode;
|