From 1ceaae5125b6781e11416dd48109611cfe182be3 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 3 Aug 2021 17:26:29 +0800 Subject: [PATCH] docs/Roo.docs.template.js --- docs/Roo.docs.template.js | 40 ++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) 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.. -- 2.39.2