docs/Roo.docs.template.js
authorAlan Knowles <alan@roojs.com>
Tue, 3 Aug 2021 09:26:29 +0000 (17:26 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 3 Aug 2021 09:26:29 +0000 (17:26 +0800)
docs/Roo.docs.template.js

index fcf4d7d..fcbb1af 100644 (file)
@@ -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..