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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user