1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 14:27:59 +01:00

Fix scrollbar guioptions

This commit is contained in:
Kris Maglione
2008-12-05 13:36:13 -05:00
parent 4ab62279ed
commit ecb44e4cd6

View File

@@ -115,7 +115,7 @@ const liberator = (function () //{{{
opts: { r: ["Right Scrollbar", "vertical"], l: ["Left Scrollbar", "vertical"], b: ["Bottom Scrollbar", "horizontal"] },
setter: function (opts)
{
let dir = ["horizontal", "vertical"].filter(function (dir) !Array.some(opts, function (o) this.opts[o][1] == dir, this), this);
let dir = ["horizontal", "vertical"].filter(function (dir) !Array.some(opts, function (o) this.opts[0] && this.opts[o][1] == dir, this), this);
let class = dir.map(function (dir) "html|html > xul|scrollbar[orient=" + dir + "]");
if (class.length)