From 1765f1ab5ed2e0121b17d1a34cda6be972a3214b Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 26 Nov 2008 11:00:19 +0000 Subject: [PATCH] fix options#op 'number' and 'string' option setters --- content/options.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/options.js b/content/options.js index 5722624d..fd15429e 100644 --- a/content/options.js +++ b/content/options.js @@ -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;