diff --git a/config/jsdoc/api/plugins/inheritdoc.js b/config/jsdoc/api/plugins/inheritdoc.js index e252269bcc..a399ae1007 100755 --- a/config/jsdoc/api/plugins/inheritdoc.js +++ b/config/jsdoc/api/plugins/inheritdoc.js @@ -1,12 +1,8 @@ /* * This is a hack to prevent inheritDoc tags from entirely removing * documentation of the method that inherits the documentation. - * - * TODO: Remove this hack when https://github.com/jsdoc3/jsdoc/issues/53 - * is addressed. */ - exports.defineTags = function(dictionary) { dictionary.defineTag('inheritDoc', { mustHaveValue: false, @@ -92,10 +88,15 @@ exports.handlers = { incompleteDoclet.stability = stability; for (key in candidate) { if (candidate.hasOwnProperty(key) && - keepKeys.indexOf(key) == -1) { + keepKeys.indexOf(key) == -1) { incompleteDoclet[key] = candidate[key]; } } + // We have found a matching parent doc and applied it so we + // don't want to ignore this doclet anymore. + incompleteDoclet.ignore = false; + // We found a match so we can stop break + break; } } }