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

Classify replacements.

This commit is contained in:
Rob Rix 2015-10-23 21:29:21 -04:00
parent 72b97d1b3a
commit c0f9120d1b

View File

@ -225,6 +225,9 @@
if (value.before != null) {
element = termToDOM(value.before, "before", json["before"]);
element.classList.add("delete");
if (value.after != null) {
element.classList.add("replace");
}
}
return element || "";
});
@ -233,6 +236,9 @@
if (value.after != null) {
element = termToDOM(value.after, "after", json["after"]);
element.classList.add("insert")
if (value.before != null) {
element.classList.add("replace");
}
}
return element || "";
});