1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 00:15:46 +01:00

Death to E4X and stuff.

This commit is contained in:
Kris Maglione
2012-11-27 23:34:16 -08:00
parent df81bcb1f9
commit 621ff6a37a
12 changed files with 44 additions and 43 deletions

View File

@@ -78,10 +78,14 @@ var Tabs = Module("tabs", {
if (!node("dactyl-tab-number")) {
let img = node("tab-icon-image");
if (img) {
let dom = DOM(<xul xmlns:xul={XUL} xmlns:html={XHTML}>
<xul:hbox highlight="tab-number"><xul:label key="icon" align="center" highlight="TabIconNumber" class="dactyl-tab-icon-number"/></xul:hbox>
<xul:hbox highlight="tab-number"><html:div key="label" highlight="TabNumber" class="dactyl-tab-number"/></xul:hbox>
</xul>.elements(), document).appendTo(img.parentNode);
let dom = DOM([
["xul:hbox", { highlight: "tab-number" },
["xul:label", { key: "icon", align: "center", highlight: "TabIconNumber",
class: "dactyl-tab-icon-number" }]],
["xul:hbox", { highlight: "tab-number" },
["html:div", { key: "label", highlight: "TabNumber",
class: "dactyl-tab-number" }]]],
document).appendTo(img.parentNode);
update(tab, {
get dactylOrdinal() Number(dom.nodes.icon.value),