From b3ddcd4ed97866b26cd315e4c50b79b0bbe0736f Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Mon, 12 Jun 2017 08:24:44 +0200 Subject: [PATCH] Avoid duplicates in Observables list --- config/jsdoc/api/plugins/observable.js | 2 +- config/jsdoc/api/template/tmpl/observables.tmpl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/jsdoc/api/plugins/observable.js b/config/jsdoc/api/plugins/observable.js index e662d81626..99b87e50a0 100644 --- a/config/jsdoc/api/plugins/observable.js +++ b/config/jsdoc/api/plugins/observable.js @@ -41,7 +41,7 @@ exports.handlers = { cls.observables = []; } observable = observables[doclet.observable]; - if (cls.observables.indexOf(observable) == -1) { + if (observable.type && cls.observables.indexOf(observable) == -1) { cls.observables.push(observable); } if (!cls.fires) { diff --git a/config/jsdoc/api/template/tmpl/observables.tmpl b/config/jsdoc/api/template/tmpl/observables.tmpl index e6859aad70..99b372e6f3 100644 --- a/config/jsdoc/api/template/tmpl/observables.tmpl +++ b/config/jsdoc/api/template/tmpl/observables.tmpl @@ -16,8 +16,10 @@