From 84a58f4848b7c9b785fe9db3da99232e0225f2f4 Mon Sep 17 00:00:00 2001 From: JJ Geewax Date: Mon, 8 Jun 2015 12:46:53 -0400 Subject: [PATCH] Fixed optional spec in the docs. --- docs/site/components/docs/docs.js | 1 - docs/site/css/main.css | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/site/components/docs/docs.js b/docs/site/components/docs/docs.js index 5b373fcb6eb..2b5cefc0e0a 100644 --- a/docs/site/components/docs/docs.js +++ b/docs/site/components/docs/docs.js @@ -159,7 +159,6 @@ angular formatHtml(detectLinks(detectModules(tag.description.replace(/^- /, ''))))); tag.types = $sce.trustAsHtml(tag.types.reduceRight( reduceModules, []).join(', ')); - tag.optional = tag.types.toString().indexOf('=') > -1; tag.subparam = tag.name.indexOf('.') > -1; return tag; }), diff --git a/docs/site/css/main.css b/docs/site/css/main.css index aed0a7d13b5..8d16c347421 100755 --- a/docs/site/css/main.css +++ b/docs/site/css/main.css @@ -747,10 +747,11 @@ ul { font-style: italic; } -.param-optional .param-description:before { - content: "optional. "; +.param-optional .param-types:after { + content: " (optional)"; color: #aaa; font-style: italic; + font-size: 85%; } .method-heading {