mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 18:54:12 +01:00
Fix brokenness.
This commit is contained in:
@@ -598,7 +598,7 @@ var DOM = Class("DOM", {
|
||||
res.push(["span", { highlight: "HelpXML" },
|
||||
["span", { highlight: "HelpXMLTagStart" },
|
||||
"<", namespaced(elem), " ",
|
||||
template.map(array.iterValues(elem.attributes),
|
||||
template.map(elem.attributes,
|
||||
attr => [
|
||||
["span", { highlight: "HelpXMLAttribute" }, namespaced(attr)],
|
||||
["span", { highlight: "HelpXMLString" }, attr.value]
|
||||
|
||||
@@ -490,7 +490,7 @@ var JavaScript = Module("javascript", {
|
||||
if (callable(func)) {
|
||||
let [, prefix, args] = /^(function .*?)\((.*?)\)/.exec(Function.prototype.toString.call(func));
|
||||
let n = this._get(i).comma.length;
|
||||
args = template.map(Iterator(args.split(", ")),
|
||||
args = template.map(args.split(", ").entries(),
|
||||
([i, arg]) => ["span", { highlight: i == n ? "Filter" : "" }, arg],
|
||||
",\u00a0");
|
||||
this.context.message = ["", prefix + "(", args, ")"];
|
||||
|
||||
@@ -201,9 +201,11 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef
|
||||
["column", { flex: "1" }],
|
||||
["column", { flex: "1" }]],
|
||||
["rows", {},
|
||||
template.map(util.range(0, Math.ceil(items.length / 2)), i =>
|
||||
template.map(util.range(0, Math.ceil(items.length / 2)),
|
||||
i =>
|
||||
["row", {},
|
||||
template.map(items.slice(i * 2, i * 2 + 2), item =>
|
||||
template.map(items.slice(i * 2, i * 2 + 2),
|
||||
item =>
|
||||
["checkbox", { xmlns: XUL, label: item.description, preference: branch + item.name }])])]]]
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user