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

Fix a slight messup in options.js caused by recent refactoring (4053:0c26dd7f1345).

This commit is contained in:
Štěpán Němec
2009-11-12 18:51:03 +01:00
parent 93bfd0880f
commit 01696096b0

View File

@@ -1117,26 +1117,10 @@ const Options = Module("options", {
else if (matches[3] == ".")
reference[0][reference[1]] += expr.toString();
}
else {
if (!reference[0]) {
if (reference[2] == "g")
reference[0] = liberator.globalVariables;
else
return; // for now
}
if (matches[3]) {
if (matches[3] == "+")
reference[0][reference[1]] += expr;
else if (matches[3] == "-")
reference[0][reference[1]] -= expr;
else if (matches[3] == ".")
reference[0][reference[1]] += expr.toString();
}
else
reference[0][reference[1]] = expr;
}
}
else
reference[0][reference[1]] = expr;
}
}
// 1 - name
else if (matches = args.match(/^\s*([\w:]+)\s*$/)) {