From 12cd3672bc74105fe266951d195546885e851632 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 10 Apr 2013 15:06:12 +0200 Subject: [PATCH] Remove "Inherited from" for non-API parents --- doc/plugins/exports.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/plugins/exports.js b/doc/plugins/exports.js index 2ab9b00b0d..f2b19c2d57 100644 --- a/doc/plugins/exports.js +++ b/doc/plugins/exports.js @@ -70,6 +70,17 @@ function filter(e) { var fqn = e.doclet.longname; if (fqn) { e.doclet.undocumented = (api.indexOf(fqn) === -1); + // Remove parents that are not part of the API + var parent; + var parents = e.doclet.augments; + if (parents) { + for (var i = parents.length - 1; i >= 0; --i) { + parent = parents[i]; + if (api.indexOf(parent) === -1) { + parents.splice(i, 1); + } + } + } } } }