From a4bdd95e9e22db165adbdb8af5f50a953cb6a166 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 3 Aug 2021 17:23:39 +0800 Subject: [PATCH] docs/Roo.docs.template.js --- docs/Roo.docs.template.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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; -- 2.39.2