summaryrefslogtreecommitdiff
path: root/common/content/tabs.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-02-19 22:02:01 -0500
committerKris Maglione <maglione.k@gmail.com>2011-02-19 22:02:01 -0500
commitd37e8159ed9aaeff35e7929047ce71007ebb4964 (patch)
treebda2f754ba519edd4fab715b9cf2c9a003506b13 /common/content/tabs.js
parentb648a061c830c0307f3dd27f5baeb15be477bb77 (diff)
downloadpentadactyl-d37e8159ed9aaeff35e7929047ce71007ebb4964.tar.gz
Make Teledactyl minimally functional, albeit with quite a lot of errors on the console.
Diffstat (limited to 'common/content/tabs.js')
-rw-r--r--common/content/tabs.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js
index c69aead5..6e0c8a6f 100644
--- a/common/content/tabs.js
+++ b/common/content/tabs.js
@@ -15,8 +15,6 @@
*/
var Tabs = Module("tabs", {
init: function () {
- this._alternates = [config.tabbrowser.mCurrentTab, null];
-
// used for the "gb" and "gB" mappings to remember the last :buffer[!] command
this._lastBufferSwitchArgs = "";
this._lastBufferSwitchSpecial = true;
@@ -27,9 +25,9 @@ var Tabs = Module("tabs", {
config.tabStrip.collapsed = true;
this.tabStyle = styles.system.add("tab-strip-hiding", config.styleableChrome,
- (config.tabStrip.id ? "#" + config.tabStrip.id : ".tabbrowser-strip") +
- "{ visibility: collapse; }",
- false, true);
+ (config.tabStrip.id ? "#" + config.tabStrip.id : ".tabbrowser-strip") +
+ "{ visibility: collapse; }",
+ false, true);
dactyl.commands["tabs.select"] = function (event) {
tabs.select(event.originalTarget.getAttribute("identifier"));
@@ -47,6 +45,8 @@ var Tabs = Module("tabs", {
});
},
+ _alternates: Class.memoize(function () [config.tabbrowser.mCurrentTab, null]),
+
cleanup: function cleanup() {
for (let [i, tab] in Iterator(this.allTabs)) {
let node = function node(class_) document.getAnonymousElementByAttribute(tab, "class", class_);