diff options
| author | Igor Minar | 2012-03-13 17:50:38 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-03-13 17:51:05 -0700 |
| commit | ce4b630524fe15185ea248ed2344549632c446ff (patch) | |
| tree | 7f277bbe7c11f04a2f9bb868dabf4505be3858f2 | |
| parent | 13f31602f396bc269076ab4d389cfd8ca94b20ba (diff) | |
| download | angular.js-ce4b630524fe15185ea248ed2344549632c446ff.tar.bz2 | |
fix(docs): properly close the optional ] in directive signatures
| -rw-r--r-- | docs/src/ngdoc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 2a86dfbc..b5e20474 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -421,8 +421,8 @@ Doc.prototype = { } else { dom.text(BOOLEAN_ATTR[param.name] ? '' : infix ); dom.text(('{' + param.type + '}').replace(/^\{\'(.*)\'\}$/, '$1')); - dom.text(param.optional ? ']' : ''); dom.text(suffix); + dom.text(param.optional && !skip ? ']' : ''); } }); } |
