1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-10 21:25:46 +01:00

Fix scrolling bug.

This commit is contained in:
Kris Maglione
2010-12-29 11:10:25 -05:00
parent 27cc988fff
commit 2a1532fca6
2 changed files with 11 additions and 4 deletions

View File

@@ -330,13 +330,15 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
let quote = util.identity;
if (flags.q)
quote = function quote(obj) typeof obj === "number" ? obj : String.quote(obj);
if (flags.e)
quote = function quote(obj) "";
if (set.has(defaults, name))
stack.top.elements.push(quote(defaults[name]));
else {
stack.top.elements.push(update(
function (obj) obj[name] != null ? quote(obj[name]) : set.has(obj, name) ? "" : unknown(full),
{ test: function (obj) obj[name] != null && obj[name] !== false }));
{ test: function (obj) obj[name] != null && obj[name] !== false && (!flags.e || obj[name] != "") }));
for (let elem in array.iterValues(stack))
elem.seen[name] = true;