mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Classify replacements.
This commit is contained in:
parent
72b97d1b3a
commit
c0f9120d1b
@ -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 || "";
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user