summaryrefslogtreecommitdiff
path: root/common/content/tabs.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-04-07 13:29:54 -0400
committerKris Maglione <maglione.k@gmail.com>2011-04-07 13:29:54 -0400
commit909d89c5a6f7936588cc65071baf27f87c9c14e0 (patch)
treecd2d76a8014eac5779f236be05a55936204d17f8 /common/content/tabs.js
parentef4070b384e8d20b2bf0e7ba9ee2ba8393954875 (diff)
downloadpentadactyl-909d89c5a6f7936588cc65071baf27f87c9c14e0.tar.gz
Fix 'passkeys' on Minefield.
Diffstat (limited to 'common/content/tabs.js')
-rw-r--r--common/content/tabs.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js
index 5c82b2bb..cfc21aa9 100644
--- a/common/content/tabs.js
+++ b/common/content/tabs.js
@@ -266,7 +266,10 @@ var Tabs = Module("tabs", {
let tabs = this.visibleTabs;
let position = this.index(null, true);
- if (spec == null || spec === "")
+ if (spec == null)
+ return -1;
+
+ if (spec === "")
return position;
if (typeof spec === "number")