1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 08:54:14 +03:00

Mark patches as such.

This commit is contained in:
Rob Rix 2015-10-21 17:37:28 -04:00
parent 61039c5c81
commit 51a304ae0f

View File

@ -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");