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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user