diff options
Diffstat (limited to 'common/content/options.js')
-rw-r--r-- | common/content/options.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/content/options.js b/common/content/options.js index 69aca5e9..4faaa18f 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -82,7 +82,7 @@ var Option = Class("Option", { get isDefault() this.stringValue === this.stringDefaultValue, /** @property {value} The option's global value. @see #scope */ - get globalValue() { try { return options.store.get(this.name, {}).value } catch (e) { util.reportError(e); throw e; } }, + get globalValue() { try { return options.store.get(this.name, {}).value; } catch (e) { util.reportError(e); throw e; } }, set globalValue(val) { options.store.set(this.name, { value: val, time: Date.now() }); }, /** @@ -499,7 +499,7 @@ var Option = Class("Option", { number: function (operator, values, scope, invert) { if (invert) - values = values[(values.indexOf(String(this.value)) + 1) % values.length] + values = values[(values.indexOf(String(this.value)) + 1) % values.length]; let value = parseInt(values); dactyl.assert(Number(values) % 1 == 0, @@ -572,7 +572,7 @@ var Option = Class("Option", { string: function (operator, values, scope, invert) { if (invert) - return values[(values.indexOf(this.value) + 1) % values.length] + return values[(values.indexOf(this.value) + 1) % values.length]; switch (operator) { case "+": return this.value + values; @@ -735,7 +735,7 @@ var Options = Module("options", { isDefault: opt.isDefault, default: opt.stringDefaultValue, pre: "\u00a0\u00a0", // Unicode nonbreaking space. - value: <></>, + value: <></> }; if (filter && !filter(opt)) |