diff options
| author | Pete Bacon Darwin | 2013-11-05 21:16:52 +0000 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-11-05 21:16:52 +0000 | 
| commit | 4c8fa353245b9c32261860caff18f002d294e19f (patch) | |
| tree | 0c2872e6f18eaad4c9187d1860bea12ca8be469d /docs/src | |
| parent | e196413df67dd56f05090fd853c1b00fd6002ef1 (diff) | |
| download | angular.js-4c8fa353245b9c32261860caff18f002d294e19f.tar.bz2 | |
fix(ngdocs): `shortDescription()` should not error if no `description`
Diffstat (limited to 'docs/src')
| -rw-r--r-- | docs/src/ngdoc.js | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 396b41ad..17ea1fa8 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -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,'{'); | 
