From 31ca8391b9047e763067cfeab91f4821c899cfa6 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 7 Apr 2009 15:45:26 -0400 Subject: [PATCH] Only apply tab binding if tab numbers are enabled. --- common/content/liberator.js | 2 ++ common/content/style.js | 8 ++++---- common/content/tabs.js | 17 ++++++++++++----- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/common/content/liberator.js b/common/content/liberator.js index a10f9300..d6d3a277 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -136,9 +136,11 @@ const liberator = (function () //{{{ }, setter: function (opts) { + const self = this; let classes = [v[1] for ([k, v] in Iterator(this.opts)) if (opts.indexOf(k) < 0)]; let css = classes.length ? classes.join(",") + "{ display: none; }" : ""; styles.addSheet(true, "taboptions", "chrome://*", css); + tabs.tabsBound = Array.some(opts, function(k) k in self.opts); statusline.updateTabCount(); } } diff --git a/common/content/style.js b/common/content/style.js index 24a05657..78cf6770 100644 --- a/common/content/style.js +++ b/common/content/style.js @@ -76,9 +76,9 @@ Highlights.prototype.CSS =