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:
parent
909e32d1eb
commit
1c6d3c2349
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user