1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-29 19:53:31 +02: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,27 +1117,11 @@ const Options = Module("options", {
else if (matches[3] == ".") else if (matches[3] == ".")
reference[0][reference[1]] += expr.toString(); 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 else
reference[0][reference[1]] = expr; reference[0][reference[1]] = expr;
} }
} }
}
// 1 - name // 1 - name
else if (matches = args.match(/^\s*([\w:]+)\s*$/)) { else if (matches = args.match(/^\s*([\w:]+)\s*$/)) {
let reference = liberator.variableReference(matches[1]); let reference = liberator.variableReference(matches[1]);