1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Terms call directly recursively.

This commit is contained in:
Rob Rix 2015-10-21 16:30:51 -04:00
parent d5d86e222c
commit 4f671e461c

View File

@ -74,18 +74,7 @@
if (model instanceof Term) {
var element = document.createElement("div");
element.classList.add("term");
if (model.syntax instanceof Indexed) {
for (i in model.syntax) {
element.appendChild(toDOM(model.syntax[i]));
}
} else if (model.syntax instanceof Keyed) {
for (k in model.syntax) {
element.appendChild(toDOM(model.syntax[k]));
}
} else if (model.syntax instanceof Leaf) {
// ?
}
element.appendChild(toDOM(model.syntax));
return element;
}