aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorIgor Minar2012-03-13 17:50:38 -0700
committerIgor Minar2012-03-13 17:51:05 -0700
commitce4b630524fe15185ea248ed2344549632c446ff (patch)
tree7f277bbe7c11f04a2f9bb868dabf4505be3858f2 /docs
parent13f31602f396bc269076ab4d389cfd8ca94b20ba (diff)
downloadangular.js-ce4b630524fe15185ea248ed2344549632c446ff.tar.bz2
fix(docs): properly close the optional ] in directive signatures
Diffstat (limited to 'docs')
-rw-r--r--docs/src/ngdoc.js2
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 ? ']' : '');
}
});
}