Add capabilities to document events

This commit is contained in:
ahocevar
2014-03-24 21:53:18 +01:00
parent b613c9cde7
commit 50f8eb65fd
6 changed files with 61 additions and 1 deletions

View File

@@ -22,6 +22,14 @@ exports.defineTags = function(dictionary) {
description: description,
readonly: readonly
});
} else if (parts[0] === 'event') {
if (!doclet.events) {
doclet.events = [];
}
doclet.events.push({
name: parts[1],
description: parts.slice(2).join(' ')
});
}
}
});