mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
Declare a variable in "gi" action.
This commit is contained in:
@@ -330,7 +330,7 @@ function Buffer() //{{{
|
|||||||
"//xhtml:input[not(@type) or @type='text' or @type='password'] | //xhtml:textarea[not(@disabled) and not(@readonly)]"
|
"//xhtml:input[not(@type) or @type='text' or @type='password'] | //xhtml:textarea[not(@disabled) and not(@readonly)]"
|
||||||
);
|
);
|
||||||
|
|
||||||
for (match in matches)
|
for (let match in matches)
|
||||||
{
|
{
|
||||||
let computedStyle = util.computedStyle(match);
|
let computedStyle = util.computedStyle(match);
|
||||||
if (computedStyle.visibility != "hidden" && computedStyle.display != "none")
|
if (computedStyle.visibility != "hidden" && computedStyle.display != "none")
|
||||||
@@ -339,11 +339,7 @@ function Buffer() //{{{
|
|||||||
|
|
||||||
if (elements.length > 0)
|
if (elements.length > 0)
|
||||||
{
|
{
|
||||||
if (count > elements.length)
|
count = Math.min(Math.max(count, 1), elements.length);
|
||||||
count = elements.length;
|
|
||||||
else if (count < 1)
|
|
||||||
count = 1;
|
|
||||||
|
|
||||||
elements[count - 1].focus();
|
elements[count - 1].focus();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user