sync fixes
[app.jsdoc] / JSDOC / Symbol.js
index 6bcddd9..2218897 100644 (file)
@@ -390,6 +390,9 @@ Symbol = XObject.define(
             if (namespaces.length) {
                 // scope for this file...
                 this.classDesc = namespaces[0].desc+"\n"+this.desc; // desc can't apply to the constructor as there is none.
+                if (!this.classDesc) {
+                    this.classDesc = this.desc;
+                }
                 this.isNamespace = true;
             }
             
@@ -481,7 +484,7 @@ Symbol = XObject.define(
             if (this.comment.getTag("singleton").length) {
                 this.isStatic = true;
                 if (this.isa == "CONSTRUCTOR") {
-                       this.isNamespace = true;
+                    this.isNamespace = true;
                 }
             }
             
@@ -733,10 +736,11 @@ Symbol = XObject.define(
 
         inherit : function(symbol) {
             if (!this.hasMember(symbol.name) && !symbol.isInner) {
-                if (symbol.is("FUNCTION"))
+                if (symbol.is("FUNCTION")) {
                     this.methods.push(symbol);
-                else if (symbol.is("OBJECT"))
+                } else if (symbol.is("OBJECT") || symbol.is("PROPERTY") ) {
                     this.properties.push(symbol);
+                }
             }
         },
 
@@ -745,7 +749,7 @@ Symbol = XObject.define(
         },
 
         addMember : function(symbol) {
-            //println("ADDMEMBER: " + this.name +  " ++ " + symbol.name);
+            //print("ADDMEMBER: " + this.name +  "  + " + symbol.name);
             if (this.is("FUNCTION")) {
                 this.isa = "OBJECT";
             }
@@ -759,10 +763,12 @@ Symbol = XObject.define(
                 this.addMethod(symbol);
                 return true;
             }
-            if (symbol.is("OBJECT")) {
+            if (symbol.is("OBJECT") || symbol.is("PROPERTY") ) {
                 this.addProperty(symbol);
                 return true;
             }
+            //print("addSomething?: " + JSON.stringify(symbol, null,4)); Seed.exit();
+            
             return false;
         },
 
@@ -797,6 +803,7 @@ Symbol = XObject.define(
         },
 
         addProperty : function(symbol) {
+            //print("addProperty: " + this.name +  "  + " + symbol.name);
             var propertyAlias = symbol.alias;
             var thisProperties = this.properties;
             for (var i = 0, l = thisProperties.length; i < l; i++) {