1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Mapping into null is a bad idea.

This commit is contained in:
Rob Rix 2015-10-23 21:19:25 -04:00
parent 770e826340
commit 865dbe2eed

View File

@ -220,10 +220,10 @@
loadJSON('diff.json', function (json) {
var diff = diffFromJSON(json.diff);
var before = diff.map(function(value) {
return value.before != null ? termToDOM(value.before, "before", json["before"]) : null;
return value.before != null ? termToDOM(value.before, "before", json["before"]) : "";
});
var after = diff.map(function(value) {
return value.after != null ? termToDOM(value.after, "after", json["after"]) : null;
return value.after != null ? termToDOM(value.after, "after", json["after"]) : "";
});
document.getElementById("before").appendChild(diffToDOM(before, "before", json["before"]));
document.getElementById("after").appendChild(diffToDOM(after, "after", json["after"]));