diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 0eacada0..0f94f6eb 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -482,7 +482,7 @@ Doc.prototype = { description:self.markdown(text.replace(match[0], match[6])), type: optional ? match[1].substring(0, match[1].length-1) : match[1], optional: optional, - 'default':match[5] + default: match[5] }; self.param.push(param); } else if (atName == 'returns' || atName == 'return') { @@ -629,7 +629,6 @@ Doc.prototype = { types = types.substr(0,limit); } types = types.split(/\|(?![\(\)\w\|\s]+>)/); - var description = param.description; if (param.optional) { name += '
(default: ' + param.default + ')
'; + } + description += '