mirror of
https://github.com/github/semantic.git
synced 2024-11-25 02:58:36 +03:00
Mapping into null is a bad idea.
This commit is contained in:
parent
770e826340
commit
865dbe2eed
@ -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"]));
|
||||
|
Loading…
Reference in New Issue
Block a user