fix(api-builder): tighten up check for decorator (#3369)

This commit is contained in:
Pete Bacon Darwin 2017-03-12 19:52:06 +00:00 committed by Ward Bell
parent 9386a6606f
commit 0cc9ad2acd
1 changed files with 17 additions and 17 deletions

View File

@ -132,7 +132,7 @@ module.exports = function addJadeDataDocsProcessor() {
.map(function(exportDoc) {
// if it ends with "Decorator", we store it in the map
// to later merge with the token
if (exportDoc.name.endsWith("Decorator")) {
if (exportDoc.name.endsWith("Decorator") && exportDoc.callMember) {
var p = processExportDoc(exportDoc.callMember);
decorators[exportDoc.name] = {
stability : p.stability,