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

Map deletions into DOM.

This commit is contained in:
Rob Rix 2015-10-21 15:50:13 -04:00
parent 9d3a6b9ec6
commit 014efdc84e

View File

@ -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; }