1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-03 19:05:47 +01:00

Fix complex 'passkeys' serialization.

This commit is contained in:
Kris Maglione
2011-03-23 00:28:30 -04:00
parent 5521d8bf6c
commit 300cba70cf
2 changed files with 5 additions and 3 deletions

View File

@@ -431,12 +431,14 @@ var Option = Class("Option", {
let [, bang, filter] = /^(!?)(.*)/.exec(pattern);
filter = Option.dequote(filter);
let quote = this.keepQuotes ? util.identity : Option.quote;
return update(Styles.matchFilter(filter), {
bang: bang,
filter: filter,
result: result !== undefined ? result : !bang,
toString: function toString() this.bang + Option.quote(this.filter) +
(typeof this.result === "boolean" ? "" : ":" + Option.quote(this.result)),
(typeof this.result === "boolean" ? "" : ":" + quote(this.result)),
});
},
@@ -492,7 +494,7 @@ var Option = Class("Option", {
return [];
if (!isArray(value))
value = Option.splitList(value, true);
return value.map(Option.parseSite);
return value.map(Option.parseSite, this);
},
stringmap: function stringmap(value) array.toObject(

View File

@@ -296,7 +296,7 @@ var File = Class("File", {
if (path instanceof Ci.nsIFile)
file = path.clone();
else if (/file:\/\//.test(path))
file = services["file:"]().getFileFromURLSpec(path);
file = services["file:"].getFileFromURLSpec(path);
else {
try {
let expandedPath = File.expandPath(path);