JSDOC/DocTag.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 28 Jun 2010 07:47:47 +0000 (15:47 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 28 Jun 2010 07:47:47 +0000 (15:47 +0800)
JSDOC/DocTag.js

index 092a9ee..e9137d7 100644 (file)
@@ -3,6 +3,8 @@
  
 XObject = imports.XObject.XObject;
 
+Options = imports.Options.Options;
+
 DocTag = imports.DocTag.DocTag;
 /**
  * DocTag - represents a single A=b tag.
@@ -31,12 +33,12 @@ DocTag = XObject.define(
         isOptional : false,
         defaultValue : '',
         desc : '',
-        
+        /* qdump needed for cahcing?
         toQDump  :function(t)
         {
             return JSDOC.toQDump(t, 'JSDOC.DocTag.fromDump({', '})', new JSDOC.DocTag());
         } ,
-
+        */
 
 
         /**
@@ -48,9 +50,9 @@ DocTag = XObject.define(
 
             try {
                 src = this.nibbleTitle(src);
-                if (JSDOC.PluginManager) {
-                    JSDOC.PluginManager.run("onDocTagSynonym", this);
-                }
+                //if (JSDOC.PluginManager) {
+                //    JSDOC.PluginManager.run("onDocTagSynonym", this);
+               // }
                 
                 src = this.nibbleType(src);
                 
@@ -60,7 +62,7 @@ DocTag = XObject.define(
                 }
             }
             catch(e) {
-                if (JSDOC.opt.LOG) JSDOC.opt.LOG.warn(e);
+                if (Options.LOG) Options.warn(e);
                 else throw e;
             }
             this.desc = src; // whatever is left
@@ -68,9 +70,9 @@ DocTag = XObject.define(
             // example tags need to have whitespace preserved
             if (this.title != "example") this.desc = this.desc.trim();
             
-            if (JSDOC.PluginManager) {
-                JSDOC.PluginManager.run("onDocTag", this);
-            }
+            //if (JSDOC.PluginManager) {
+            //    JSDOC.PluginManager.run("onDocTag", this);
+            //}
         },
 
         /**
@@ -104,7 +106,8 @@ DocTag = XObject.define(
             @param {string} src
             @return src
          */
-        nibbleType : function(src) {
+        nibbleType : function(src) 
+        {
             if (typeof src != "string") throw "src must be a string not "+(typeof src);
             
             if (src.match(/^\s*\{/)) {
@@ -163,10 +166,10 @@ DocTag = XObject.define(
         }
 });
 
-
-JSDOC.DocTag.fromDump = function(t)
+// cached support?
+DocTag.fromDump = function(t)
 {
-    var ns = new JSDOC.DocTag();
+    var ns = new DocTag();
     for (var i in t) {
         if (typeof(ns[i]) == "undefined") {
             println("ERR:no default for DocTag:"+ i);