From d837d8950cc86d4bc5c6d88ca67f5a1b72aca02a Mon Sep 17 00:00:00 2001 From: or-else Date: Sat, 19 May 2018 16:51:16 -0700 Subject: [PATCH] start treating .Private as a dictionary instead of string --- index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 3b644e0e..5751191e 100644 --- a/index.html +++ b/index.html @@ -2036,8 +2036,8 @@ // which don't satisfy the condition. if (instance.props.filterFunc && instance.props.filter) { var content = [key]; - if (c.private) { - content.push(("" + c.private).toLowerCase()); + if (c.private && c.private.comment) { + content.push(("" + c.private.comment).toLowerCase()); } if (c.public && c.public.fn) { content.push(("" + c.public.fn).toLowerCase()); @@ -2059,7 +2059,8 @@ badges.push({name: 'owner'}); } } - var comment = Array.isArray(c.private) ? c.private.join(", ") : c.private; + var comment = Array.isArray(c.private) ? + c.private.join(", ") : (c.private ? c.private.comment : null); contactNodes.push(