1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 21:07:59 +01:00

Fix case of all references to Option#globalValue.

This commit is contained in:
Doug Kearns
2009-05-20 14:25:23 +10:00
parent f834cfcd6b
commit dfb68bc9f8

View File

@@ -129,15 +129,15 @@ function Option(names, description, type, defaultValue, extraInfo) //{{{
} }
} }
if (this.globalvalue == undefined) if (this.globalValue == undefined)
this.globalvalue = this.defaultValue; this.globalValue = this.defaultValue;
} }
Option.prototype = { Option.prototype = {
/** @property {value} The option's global value. @see #scope */ /** @property {value} The option's global value. @see #scope */
get globalvalue() options.store.get(this.name), get globalValue() options.store.get(this.name),
set globalvalue(val) { options.store.set(this.name, val); }, set globalValue(val) { options.store.set(this.name, val); },
/** /**
* Returns <b>value</b> as an array of parsed values if the option type is * Returns <b>value</b> as an array of parsed values if the option type is
@@ -223,7 +223,7 @@ Option.prototype = {
if (liberator.has("tabs") && (scope & options.OPTION_SCOPE_LOCAL)) if (liberator.has("tabs") && (scope & options.OPTION_SCOPE_LOCAL))
aValue = tabs.options[this.name]; aValue = tabs.options[this.name];
if ((scope & options.OPTION_SCOPE_GLOBAL) && (aValue == undefined)) if ((scope & options.OPTION_SCOPE_GLOBAL) && (aValue == undefined))
aValue = this.globalvalue; aValue = this.globalValue;
if (this.getter) if (this.getter)
return this.getter.call(this, aValue); return this.getter.call(this, aValue);
@@ -261,14 +261,14 @@ Option.prototype = {
if (liberator.has("tabs") && (scope & options.OPTION_SCOPE_LOCAL)) if (liberator.has("tabs") && (scope & options.OPTION_SCOPE_LOCAL))
tabs.options[this.name] = newValue; tabs.options[this.name] = newValue;
if ((scope & options.OPTION_SCOPE_GLOBAL) && newValue != this.globalValue) if ((scope & options.OPTION_SCOPE_GLOBAL) && newValue != this.globalValue)
this.globalvalue = newValue; this.globalValue = newValue;
this.hasChanged = true; this.hasChanged = true;
}, },
/** /**
* @property {value} The option's current value. The option's local value, * @property {value} The option's current value. The option's local value,
* or if no local value is set, this is equal to the (@link #globalvalue). * or if no local value is set, this is equal to the (@link #globalValue).
*/ */
get value() this.get(), get value() this.get(),
set value(val) this.set(val), set value(val) this.set(val),