mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Map deletions into DOM.
This commit is contained in:
parent
9d3a6b9ec6
commit
014efdc84e
@ -69,6 +69,14 @@
|
||||
return this;
|
||||
}
|
||||
|
||||
function toDOM(view) {
|
||||
if (view instanceof Delete) {
|
||||
var element = document.createElement("div");
|
||||
element.classList.add("delete");
|
||||
element.appendChild(toDOM(view.before));
|
||||
}
|
||||
}
|
||||
|
||||
function term(term, element) {
|
||||
if (term.extract == null || term.unwrap == null) { return; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user