1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 13:34:11 +01:00

Death to E4X and stuff.

This commit is contained in:
Kris Maglione
2012-12-17 18:56:36 -08:00
parent 0d179d78bc
commit 3f483de547
24 changed files with 112 additions and 517 deletions

View File

@@ -11,7 +11,7 @@ defineModule("help", {
lazyRequire("completion", ["completion"]);
lazyRequire("overlay", ["overlay"]);
lazyRequire("template", ["template", "template_"]);
lazyRequire("template", ["template"]);
var HelpBuilder = Class("HelpBuilder", {
init: function init() {
@@ -166,7 +166,7 @@ var Help = Module("Help", {
if (level == 0 && /^.*:\n$/.test(match.par)) {
let text = par.slice(0, -1);
res.push(["h2", { tag: "news-" + text },
template_.linkifyHelp(text, true)]);
template.linkifyHelp(text, true)]);
}
else {
let [, a, b] = /^(IMPORTANT:?)?([^]*)/.exec(par);
@@ -174,7 +174,7 @@ var Help = Module("Help", {
res.push(["p", { "dactyl:highlight": group + " HelpNews" },
!tags.length ? "" : ["hl", { key: "HelpNewsTag" }, tags.join(" ")],
a ? ["hl", { key: "HelpWarning" }, a] : "",
template_.linkifyHelp(b, true)]);
template.linkifyHelp(b, true)]);
}
}
i++;