1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

delete obselete code

This commit is contained in:
joshvera 2015-11-03 11:47:16 -05:00
parent 86e1e8ae8b
commit 92feb67ae8

View File

@ -73,28 +73,6 @@
loadJSON((window.location.search || '?diff.json').substr(1), function (json) {
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"] })
document.getElementById("before").appendChild(dom.before);
document.getElementById("after").appendChild(dom.after);