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

Fix [[/]]. Closes issue #24.

This commit is contained in:
Kris Maglione
2010-09-25 08:42:36 -04:00
parent f81980acab
commit d049c7f4a1
2 changed files with 4 additions and 3 deletions

View File

@@ -555,7 +555,7 @@ const Buffer = Module("buffer", {
return true;
}
let res = util.evaluateXPath(options.get("hinttags").defaultValue, frame.document);
let res = util.evaluateXPath(options.get("hinttags").defaultValues, frame.document);
for (let [, regex] in Iterator(regexes)) {
for (let i in util.range(res.snapshotLength, 0, -1)) {
let elem = res.snapshotItem(i);

View File

@@ -53,7 +53,8 @@ const Option = Class("Option", {
if (arguments.length > 3) {
if (this.type == "string")
defaultValue = Commands.quote(defaultValue);
this.defaultValue = this.joinValues(this.parseValues(defaultValue));
this.defaultValues = this.parseValues(defaultValue)
this.defaultValue = this.joinValues(this.defaultValues);
}
if (extraInfo)
@@ -1291,7 +1292,7 @@ const Options = Module("options", {
: opt.name + "=" + opt.value]
}
for (opt in options)
if (!opt.getter && opt.value != opt.defaultValue && (opt.scope & Option.SCOPE_GLOBAL))
if (!opt.getter && opt.value !== opt.defaultValue && (opt.scope & Option.SCOPE_GLOBAL))
]
}
}