1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 22:07:59 +01:00

move the global variable hah to vimperator.hints and fix bug #17254

This commit is contained in:
Doug Kearns
2007-06-28 02:16:41 +00:00
parent f2c340360d
commit 8cd219f400
5 changed files with 42 additions and 40 deletions

View File

@@ -79,7 +79,7 @@ function hit_a_hint() //{{{
}
// logMessage("winId:"+win.winId);
win.res = evaluateXPath(vimperator.options["hinttags"], doc);
win.coordLoaderId = window.setTimeout("hah.loadCoord(" + win.winId + ", 0);", 1);
win.coordLoaderId = window.setTimeout("vimperator.hints.loadCoord(" + win.winId + ", 0);", 1);
}
this.loadCoord = function(winId, i)
@@ -93,7 +93,7 @@ function hit_a_hint() //{{{
i++;
if (i < win.res.snapshotLength && !isHahModeEnabled)
window.setTimeout("hah.loadCoord(" + winId + ", "+ i +");", 1);
window.setTimeout("vimperator.hints.loadCoord(" + winId + ", "+ i +");", 1);
else
win.coordLoaderId = null;
};
@@ -521,7 +521,7 @@ function hit_a_hint() //{{{
this.yankUrlHints = function()
{
var loc = "";
var elems = hah.hintedElements();
var elems = this.hintedElements();
var tmp = "";
for(i=0; i<elems.length; i++)
{
@@ -540,7 +540,7 @@ function hit_a_hint() //{{{
this.yankTextHints = function()
{
var loc = "";
var elems = hah.hintedElements();
var elems = this.hintedElements();
var tmp = "";
for(i=0; i<elems.length; i++)
{
@@ -680,9 +680,8 @@ function hit_a_hint() //{{{
}
window.document.addEventListener("pageshow", initDoc, null);
window.addEventListener("resize", onResize, null);
// FIXME: add resize support
//window.addEventListener("resize", onResize, null);
} //}}}
var hah = new hit_a_hint();
// vim: set fdm=marker sw=4 ts=4 et: