mirror of
https://github.com/github/semantic.git
synced 2024-12-26 16:33:03 +03:00
Mark patches as such.
This commit is contained in:
parent
61039c5c81
commit
51a304ae0f
@ -74,18 +74,21 @@
|
||||
|
||||
if (model instanceof Delete) {
|
||||
element = document.createElement("div");
|
||||
element.classList.add("patch");
|
||||
element.classList.add("delete");
|
||||
element.appendChild(toDOM(model.before));
|
||||
}
|
||||
|
||||
if (model instanceof Insert) {
|
||||
element = document.createElement("div");
|
||||
element.classList.add("patch");
|
||||
element.classList.add("insert");
|
||||
element.appendChild(toDOM(model.after));
|
||||
}
|
||||
|
||||
if (model instanceof Replace) {
|
||||
element = document.createElement("div");
|
||||
element.classList.add("patch");
|
||||
element.classList.add("replace");
|
||||
var before = toDOM(model.before);
|
||||
before.classList.add("delete");
|
||||
|
Loading…
Reference in New Issue
Block a user