From ce4b630524fe15185ea248ed2344549632c446ff Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 13 Mar 2012 17:50:38 -0700 Subject: fix(docs): properly close the optional ] in directive signatures --- docs/src/ngdoc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/src') 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 ? ']' : ''); } }); } -- cgit v1.2.3