1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:17:59 +01:00

fix options#op 'number' and 'string' option setters

This commit is contained in:
Doug Kearns
2008-11-26 11:00:19 +00:00
parent 7d1b3f793c
commit 1765f1ab5e

View File

@@ -209,13 +209,13 @@ Option.prototype = {
switch (operator) switch (operator)
{ {
case "+": case "+":
newValue = currentValue + value; newValue = this.value + value;
break; break;
case "-": case "-":
newValue = currentValue - value; newValue = this.value - value;
break; break;
case "^": case "^":
newValue = currentValue * value; newValue = this.value * value;
break; break;
case "=": case "=":
newValue = value; newValue = value;
@@ -256,13 +256,13 @@ Option.prototype = {
switch (operator) switch (operator)
{ {
case "+": case "+":
newValue = currentValue + values; newValue = this.value + values;
break; break;
case "-": case "-":
newValue = currentValue.replace(values, ""); newValue = this.value.replace(values, "");
break; break;
case "^": case "^":
newValue = values + currentValue; newValue = values + this.value;
break; break;
case "=": case "=":
newValue = values; newValue = values;