diff --git a/src/ngdoc.js b/src/ngdoc.js index 6d65b39..4fdc9f5 100644 --- a/src/ngdoc.js +++ b/src/ngdoc.js @@ -382,11 +382,11 @@ Doc.prototype = { var shortName = this.name.split("#"); if (shortName.length > 1) { this.shortName = shortName.pop().trim(); - }else { + } else { shortName = this.name.split(":"); if (shortName.length > 1) { this.shortName = shortName.pop().trim(); - }else { + } else { this.shortName = this.name.split(".").pop().trim(); } }