!(item.extra && item.extra.length) ? [] :
["span", { highlight: "URLExtra" },
" (",
- template.map(item.extra, function (e)
+ template.map(item.extra, e =>
["", e[0], ": ",
["span", { highlight: e[2] }, e[1]]],
"\u00a0"),
}
},
- _sandbox: Class.Memoize(function () Cu.Sandbox(Cu.getGlobalForObject(global),
- { wantXrays: false })),
+ _sandbox: Class.Memoize(() => Cu.Sandbox(Cu.getGlobalForObject(global),
+ { wantXrays: false })),
// if "processStrings" is true, any passed strings will be surrounded by " and
// any line breaks are displayed as \n
["th", {}, _("title.VPos")],
["th", {}, _("title.Title")],
["th", {}, _("title.URI")]],
- this.map(Iterator(elems), function ([idx, val])
+ this.map(Iterator(elems), ([idx, val]) =>
["tr", {},
["td", { class: "indicator" }, idx == index ? ">" : ""],
["td", {}, Math.abs(idx - index)],
return ["table", {},
["tr", { highlight: "Title", align: "left" },
["th", {}, "--- " + title + " ---"]],
- this.map(opts, function (opt)
+ this.map(opts, opt =>
["tr", {},
["td", {},
["div", { highlight: "Message" },
let table = ["table", {},
["tr", { highlight: "Title", align: "left" },
["th", { colspan: "2" }, title]],
- this.map(data, function (datum)
+ this.map(data, datum =>
["tr", {},
["td", { style: "font-weight: bold; min-width: 150px; padding-left: " + (indent || "2ex") }, datum[0]],
["td", {}, datum[1]]])];
["th", {}, h])],
this.map(iter, (row) =>
["tr", {},
- this.map(Iterator(row), function ([i, d])
+ this.map(Iterator(row), ([i, d]) =>
["td", { style: style[i] || "" }, d])])];
},
- usage: function usage(iter, format) {
-
- format = format || {};
+ usage: function usage(iter, format = {}) {
let desc = format.description || (item => this.linkifyHelp(item.description));
let help = format.help || (item => item.name);
let sourceLink = (frame) => {