From: Alan Knowles Date: Tue, 3 Aug 2021 09:26:29 +0000 (+0800) Subject: docs/Roo.docs.template.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=1ceaae5125b6781e11416dd48109611cfe182be3 docs/Roo.docs.template.js --- diff --git a/docs/Roo.docs.template.js b/docs/Roo.docs.template.js index fcf4d7d29b..fcbb1af9b0 100644 --- a/docs/Roo.docs.template.js +++ b/docs/Roo.docs.template.js @@ -138,31 +138,33 @@ Roo.docs.template = { msorted.filter( function($){ + if (!$.memberOf.length) { + $.memberOf = data.name; + } - - if (data.isSingleton) { - - if ($.isStatic && $.memberOf.length && $.memberOf != data.name) { // it's a singleton - can not inherit static methods. + if (data.isSingleton) { + + if ($.isStatic && $.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.length && ($.memberOf != data.name) && $.isStatic){ + + + if (($.memberOf != data.name) && $.isStatic){ + return true; + } + if ($.isStatic) { + $.isInherited = ($.memberOf != data.name); + ownMethods.push($); + } + return true; } - if ($.isStatic) { - $.isInherited = ($.memberOf != data.name); - ownMethods.push($); - } - - return true; - } ); // then dynamics..