mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Attempt to correct Diff/DOM mapping.
This commit is contained in:
parent
27853e30b1
commit
7bff777b07
@ -110,14 +110,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (model instanceof Diff) {
|
if (model instanceof Diff) {
|
||||||
element = document.createElement("div");
|
|
||||||
element.classList.add("diff");
|
|
||||||
if (model.pure != null) {
|
if (model.pure != null) {
|
||||||
|
element = document.createElement("div");
|
||||||
|
element.classList.add("diff");
|
||||||
element.classList.add("pure");
|
element.classList.add("pure");
|
||||||
element.appendChild(toDOM(model.pure));
|
element.appendChild(toDOM(model.pure[stateName], stateName, source));
|
||||||
} else if(model.roll != null) {
|
} else if(model.roll != null) {
|
||||||
|
element = rangeAndSyntaxToDOM(model.ranges[stateName], mapped, source, function(child) { return toDOM(child, stateName, source); });
|
||||||
|
element.classList.add("diff");
|
||||||
element.classList.add("roll");
|
element.classList.add("roll");
|
||||||
element.appendChild(toDOM(model.roll));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user