1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-01 06:05:44 +01:00

Move 'system' arg of Styles methods to arg 0, and add completion functions

This commit is contained in:
Kris Maglione
2008-12-19 17:11:05 -05:00
parent f5b2173979
commit 480151cc4d
7 changed files with 74 additions and 39 deletions

View File

@@ -124,9 +124,9 @@ const liberator = (function () //{{{
let class = dir.map(function (dir) "html|html > xul|scrollbar[orient=" + dir + "]");
if (class.length)
styles.addSheet("scrollbar", "*", class.join(", ") + " { visibility: collapse !important; }", true, true);
styles.addSheet(true, "scrollbar", "*", class.join(", ") + " { visibility: collapse !important; }");
else
styles.removeSheet("scrollbar", null, null, null, true);
styles.removeSheet(true, "scrollbar");
options.safeSetPref("layout.scrollbar.side", opts.indexOf("l") >= 0 ? 3 : 2);
},
validator: function (opts) (opts.indexOf("l") < 0 || opts.indexOf("r") < 0)
@@ -140,7 +140,7 @@ const liberator = (function () //{{{
{
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("taboptions", "chrome://*", css, true, true);
styles.addSheet(true, "taboptions", "chrome://*", css);
statusline.updateTabCount();
}
}