aboutsummaryrefslogtreecommitdiffstats
path: root/linkHints.js
diff options
context:
space:
mode:
authorIlya Sukhar2010-09-24 01:23:11 -0700
committerIlya Sukhar2010-09-24 01:23:11 -0700
commitf18052e836e9387968969e2cd6b71e0a8d5bd943 (patch)
tree68b1490be35be02bbf569a84c9f4df676ac40bef /linkHints.js
parent6e959935f94355bfe55dee808abd7ecc9fd42c66 (diff)
downloadvimium-f18052e836e9387968969e2cd6b71e0a8d5bd943.tar.bz2
Oops, fixed a regression.
Diffstat (limited to 'linkHints.js')
-rw-r--r--linkHints.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/linkHints.js b/linkHints.js
index c62468fb..e7f069cb 100644
--- a/linkHints.js
+++ b/linkHints.js
@@ -48,7 +48,9 @@ function activateLinkHintsMode(openInNewTab, withQueue) {
document.addEventListener("keyup", onKeyUpInLinkHintsMode, true);
}
-function setOpenLinkMode(shouldOpenLinkHintInNewTab, shouldOpenLinkHintWithQueue) {
+function setOpenLinkMode(openInNewTab, withQueue) {
+ shouldOpenLinkHintInNewTab = openInNewTab;
+ shouldOpenLinkHintWithQueue = withQueue;
if (shouldOpenLinkHintWithQueue) {
HUD.show("Open multiple links in a new tab");
} else {
@@ -153,7 +155,7 @@ function onKeyDownInLinkHintsMode(event) {
if (event.keyCode == keyCodes.shiftKey && !openLinkModeToggle) {
// Toggle whether to open link in a new or current tab.
setOpenLinkMode(!shouldOpenLinkHintInNewTab, shouldOpenLinkHintWithQueue);
- openLinkModeToggle = true;
+ openLinkModeToggle = true;
}
var keyChar = getKeyChar(event);
@@ -185,7 +187,7 @@ function onKeyUpInLinkHintsMode(event) {
if (event.keyCode == keyCodes.shiftKey && openLinkModeToggle) {
// Revert toggle on whether to open link in new or current tab.
setOpenLinkMode(!shouldOpenLinkHintInNewTab, shouldOpenLinkHintWithQueue);
- openLinkModeToggle = false;
+ openLinkModeToggle = false;
}
event.stopPropagation();
event.preventDefault();