mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 02:17:59 +01:00
declare loop counter in yankUrlHints() and yankTextHints() and reverse rev 1.27
This commit is contained in:
@@ -516,12 +516,12 @@ function Hints() //{{{
|
|||||||
var loc = "";
|
var loc = "";
|
||||||
var elems = this.hintedElements();
|
var elems = this.hintedElements();
|
||||||
var tmp = "";
|
var tmp = "";
|
||||||
for (i = 0; i < elems.length; i++)
|
for (var i = 0; i < elems.length; i++)
|
||||||
{
|
{
|
||||||
tmp = elems[i].refElem.href;
|
tmp = elems[i].refElem.href;
|
||||||
if (typeof(tmp) != 'undefined' && tmp.length > 0)
|
if (typeof(tmp) != 'undefined' && tmp.length > 0)
|
||||||
{
|
{
|
||||||
if (i > 0 && elems.length > 1)
|
if (i > 0)
|
||||||
loc += "\n";
|
loc += "\n";
|
||||||
loc += tmp;
|
loc += tmp;
|
||||||
}
|
}
|
||||||
@@ -539,12 +539,12 @@ function Hints() //{{{
|
|||||||
var loc = "";
|
var loc = "";
|
||||||
var elems = this.hintedElements();
|
var elems = this.hintedElements();
|
||||||
var tmp = "";
|
var tmp = "";
|
||||||
for (i = 0; i < elems.length; i++)
|
for (var i = 0; i < elems.length; i++)
|
||||||
{
|
{
|
||||||
tmp = elems[i].refElem.textContent;
|
tmp = elems[i].refElem.textContent;
|
||||||
if (typeof(tmp) != 'undefined' && tmp.length > 0)
|
if (typeof(tmp) != 'undefined' && tmp.length > 0)
|
||||||
{
|
{
|
||||||
if (i > 0 && elems.length > 1)
|
if (i > 0)
|
||||||
loc += "\n";
|
loc += "\n";
|
||||||
loc += tmp;
|
loc += tmp;
|
||||||
}
|
}
|
||||||
@@ -566,10 +566,10 @@ function Hints() //{{{
|
|||||||
elem.contentWindow.focus();
|
elem.contentWindow.focus();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
//else
|
||||||
{
|
//{
|
||||||
//elem.focus();
|
// elem.focus();
|
||||||
}
|
//}
|
||||||
|
|
||||||
var evt = doc.createEvent('MouseEvents');
|
var evt = doc.createEvent('MouseEvents');
|
||||||
var x = 0;
|
var x = 0;
|
||||||
@@ -643,6 +643,7 @@ function Hints() //{{{
|
|||||||
hints = doc.createElement('HINTS');
|
hints = doc.createElement('HINTS');
|
||||||
hints.id = "hah_hints";
|
hints.id = "hah_hints";
|
||||||
hints.valid_hint_count = 0; // initially 0 elements are usable as hints
|
hints.valid_hint_count = 0; // initially 0 elements are usable as hints
|
||||||
|
|
||||||
if (doc.body)
|
if (doc.body)
|
||||||
doc.body.appendChild(hints);
|
doc.body.appendChild(hints);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user