1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-02 20:35:46 +01:00

Only apply tab binding if tab numbers are enabled.

This commit is contained in:
Kris Maglione
2009-04-07 15:45:26 -04:00
parent efed0636d1
commit 31ca8391b9
3 changed files with 18 additions and 9 deletions

View File

@@ -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();
}
}