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)
{
case "+":
newValue = currentValue + value;
newValue = this.value + value;
break;
case "-":
newValue = currentValue - value;
newValue = this.value - value;
break;
case "^":
newValue = currentValue * value;
newValue = this.value * value;
break;
case "=":
newValue = value;
@@ -256,13 +256,13 @@ Option.prototype = {
switch (operator)
{
case "+":
newValue = currentValue + values;
newValue = this.value + values;
break;
case "-":
newValue = currentValue.replace(values, "");
newValue = this.value.replace(values, "");
break;
case "^":
newValue = values + currentValue;
newValue = values + this.value;
break;
case "=":
newValue = values;