fix(ngdocs): shortDescription() should not error if no description

This commit is contained in:
Pete Bacon Darwin 2013-11-05 21:16:52 +00:00
parent e196413df6
commit 4c8fa35324

View file

@ -214,6 +214,7 @@ Doc.prototype = {
},
shortDescription : function() {
if (!this.description) return this.description;
var text = this.description.split("\n")[0];
text = text.replace(/<.+?\/?>/g, '');
text = text.replace(/{/g,'&#123;');