mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Terms call directly recursively.
This commit is contained in:
parent
d5d86e222c
commit
4f671e461c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user