1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Construct DOM for insertions.

This commit is contained in:
Rob Rix 2015-10-21 16:39:55 -04:00
parent 909e32d1eb
commit 1c6d3c2349

View File

@ -71,6 +71,13 @@
return element;
}
if (model instanceof Insert) {
var element = document.createElement("div");
element.classList.add("insert");
element.appendChild(toDOM(model.after));
return element;
}
if (model instanceof Term) {
var element = document.createElement("div");
element.classList.add("term");