From 9780e9f0c0974688b570407530653b368bfb7622 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Fri, 8 Aug 2014 13:37:51 +0200 Subject: [PATCH] Dereference typedef --- buildcfg/jsdoc/info/publish.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildcfg/jsdoc/info/publish.js b/buildcfg/jsdoc/info/publish.js index b8f85b37b4..e2692d482a 100644 --- a/buildcfg/jsdoc/info/publish.js +++ b/buildcfg/jsdoc/info/publish.js @@ -58,8 +58,9 @@ exports.publish = function(data, opts) { types: ['{}'] }); } else { - var type = typedefs[typedefs.length - 1].types[0]; - typedefs[typedefs.length - 1].types[0] = type + var typedef = typedefs[typedefs.length - 1]; + var type = typedef.types[0]; + typedef.types[0] = type .replace(/\}$/, ', ' + doc.longname.split('#')[1] + ': (' + getTypes(doc.type.names).join('|') + ')}') .replace('{, ', '{');