From: Alan Knowles Date: Tue, 3 Aug 2021 09:23:39 +0000 (+0800) Subject: docs/Roo.docs.template.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=a4bdd95e9e22db165adbdb8af5f50a953cb6a166 docs/Roo.docs.template.js --- diff --git a/docs/Roo.docs.template.js b/docs/Roo.docs.template.js index 010657045a..651107b82e 100644 --- a/docs/Roo.docs.template.js +++ b/docs/Roo.docs.template.js @@ -143,22 +143,22 @@ Roo.docs.template = { if (data.isSingleton) { - if ($.isStatic && $.memberOf != data.name) { // it's a singleton - can not inherit static methods. - return true; - } + if ($.isStatic && $.memberOf.length && $.memberOf != data.name) { // it's a singleton - can not inherit static methods. + return true; + } - $.isInherited = ($.memberOf != data.name); - ownMethods.push($); - return true; + $.isInherited = ($.memberOf.length && $.memberOf != data.name); + ownMethods.push($); + return true; } - if (($.memberOf != data.name) && $.isStatic){ - return true; + if ($.memberOf.length && $.memberOf != data.name) && $.isStatic){ + return true; } if ($.isStatic) { - $.isInherited = ($.memberOf != data.name); - ownMethods.push($); + $.isInherited = ($.memberOf != data.name); + ownMethods.push($); } return true;