JSDOC/Options.js
[app.jsdoc] / XObject.js
index faf6505..d4f6bfd 100644 (file)
@@ -64,23 +64,26 @@ function XObject (cfg) {
 
 XObject.prototype = {
     /**
-     * @type {GObject} the Gtk / etc. element.
+     * @type {GObject}
+     * the Gtk / GObject element.
      */
     el : false, 
-    /*
-     * @type  {Array} list of sub elements
+    /**
+     * @type  {Array}
+     * list of sub elements
      */
     items : false,
     /**
-     * @type {XObject} parent Element
+     * @type {XObject}
+     * parent Element
      */
     parent: false, 
      /**
-     * @type {Object} the construction configuration.
+     * @type {Object}
+     * the constructor configuration.
      */
     config: false,
      /**
-      * @method init
       * Initializes the Element (el) hooks up all the listeners
       * and packs the children.
       * you can override this, in child objects, then 
@@ -180,12 +183,11 @@ XObject.prototype = {
       
      
      /**
-      * @method
       * Adds an item to the object using a new XObject
       * uses pack property to determine how to add it.
-      * @arg cfg {Object} same as XObject constructor.
+      * @param {Object} o same as XObject constructor.
       */
-    addItem : function(cfg) {
+    addItem : function(o) {
         
          
         var item = (o.constructor == XObject) ? o : new XObject(o);
@@ -231,11 +233,10 @@ XObject.prototype = {
         
     },
     /**
-      * @method addListener
       * Connects a method to a signal. (gjs/Seed aware)
       * 
-      * @arg sig  {String} name of signal
-      * @arg fn  {Function} handler.
+      * @param {String} sig  name of signal
+      * @param {Function} fn  handler.
       */
     addListener  : function(sig, fn) 
     {
@@ -255,11 +256,10 @@ XObject.prototype = {
         
     },
      /**
-      * @method get
       * Finds an object in the child elements using xid of object.
       * prefix with '.' to look up the tree.. multiple '..' to look further up..
       * 
-      * @arg name  {String} name of signal
+      * @param {String}  name  name of signal
       * @return   {XObject|false} the object if found.
       */
     get : function(xid)