mirror of
https://github.com/github/semantic.git
synced 2024-12-03 00:16:52 +03:00
delete obselete code
This commit is contained in:
parent
86e1e8ae8b
commit
92feb67ae8
@ -73,28 +73,6 @@
|
|||||||
loadJSON((window.location.search || '?diff.json').substr(1), function (json) {
|
loadJSON((window.location.search || '?diff.json').substr(1), function (json) {
|
||||||
var diff = diffFromJSON(json.diff);
|
var diff = diffFromJSON(json.diff);
|
||||||
|
|
||||||
// var before = diff.map(function(value) {
|
|
||||||
// var element;
|
|
||||||
// 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 || "";
|
|
||||||
// });
|
|
||||||
// var after = diff.map(function(value) {
|
|
||||||
// var element;
|
|
||||||
// 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 || "";
|
|
||||||
// });
|
|
||||||
var dom = diffToDOM(diff, { "before": json["before"] , "after": json["after"] })
|
var dom = diffToDOM(diff, { "before": json["before"] , "after": json["after"] })
|
||||||
document.getElementById("before").appendChild(dom.before);
|
document.getElementById("before").appendChild(dom.before);
|
||||||
document.getElementById("after").appendChild(dom.after);
|
document.getElementById("after").appendChild(dom.after);
|
||||||
|
Loading…
Reference in New Issue
Block a user