Handle possibly undefined value

This commit is contained in:
David Rowe 2018-04-28 19:57:45 +12:00
parent fc4837b51c
commit fada958e72

View file

@ -107,7 +107,7 @@ exports.handlers = {
// Append an Available In: table at the end of the namespace description.
if (rows.length > 0) {
var table = "<br><br><table><tr><th>Available in:</th><td>" + rows.join("</td><td>") + "</td></tr></table>";
e.doclet.description = e.doclet.description + table;
e.doclet.description = (e.doclet.description ? e.doclet.description : "") + table;
}
}
}