1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-23 04:55:46 +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("dom", {
lazyRequire("highlight", ["highlight"]);
lazyRequire("messages", ["_"]);
lazyRequire("template", ["template", "template_"]);
lazyRequire("template", ["template"]);
var XBL = Namespace("xbl", "http://www.mozilla.org/xbl");
var XHTML = Namespace("html", "http://www.w3.org/1999/xhtml");
@@ -579,7 +579,7 @@ var DOM = Class("DOM", {
res.push(["span", { highlight: "HelpXML" },
["span", { highlight: "HelpXMLTagStart" },
"<", namespaced(elem), " ",
template_.map(array.iterValues(elem.attributes),
template.map(array.iterValues(elem.attributes),
function (attr) [
["span", { highlight: "HelpXMLAttribute" }, namespaced(attr)],
["span", { highlight: "HelpXMLString" }, attr.value]
@@ -603,7 +603,7 @@ var DOM = Class("DOM", {
res.push({}.toString.call(elem));
}
}, this);
res = template_.map(res, util.identity, ",");
res = template.map(res, util.identity, ",");
return color ? res : res.join("");
},