JSDOC/DocTag.js
authorAlan Knowles <alan@roojs.com>
Mon, 11 May 2015 10:51:00 +0000 (18:51 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 11 May 2015 10:51:00 +0000 (18:51 +0800)
JSDOC/DocTag.js

index 6b69d44..2e5dfdb 100644 (file)
@@ -48,6 +48,11 @@ DocTag = XObject.define(
             var ret = { '*object' : 'DocTag' };
             
             for (var i in this) {
+                if (i == 'optvalues') { 
+                    ret[i] = this.optvalues;
+                    continue;
+                }
+                
                 switch (typeof(this[i])) {
                     case 'function':
                        continue;
@@ -57,10 +62,13 @@ DocTag = XObject.define(
                     case 'number':
                     case 'boolean':                    
                         ret[i] = this[i]; continue;
+                        
+                        
+                        
                     default:
                         
                         print("unknown type: (" + i + ")"  + typeof(this[i]));
-                        this.toJSON = null;q
+                        this.toJSON = null;
                         print(JSON.stringify(this));;
                         Seed.quit();
                    }