JSDOC/Introspect/Union.js
[gnome.introspection-doc-generator] / JSDOC / Introspect / Union.js
index fd6f37a..723a756 100644 (file)
@@ -1,56 +1,58 @@
 //<script type="text/javascript">
-//Gtk = imports.gi.Gtk;
+
 GI      = imports.gi.GIRepository;
-GLib    = imports.gi.GLib;
-xml     = imports.libxml;
-//GObject = imports.gi.GObject;
 
-console = imports['console.js'].console;
-JSDOC   = imports['JSDOC.js'].JSDOC;
-Roo     = imports['Roo.js'].Roo;
 
-Introspect = imports['JSDOC/Introspect.js'].Introspect;
-Base = imports['JSDOC/Introspect/Base.js'].Base;
 
-/**
- * Union
- */
+XObject     = imports.XObject.XObject;
+console     = imports.console.console;
+Base        = imports.Base.Base;
 
-Union = function(ns, name) {
-    Base.call(this, ns, name);
+  
    
-}
 
-Roo.extend(Union, Base, {
-    titleType: 'Union',
-    _loaded : false,
-    load : function()
+/**
+ * Union
+ */
+Union = XObject.define(
+    function(ns, name) {
+        Base.call(this, ns, name);
+       
+    }, 
+    Base, 
     {
-        if (this._loaded) {
-            return; // already loaded..
-        }
-        // my props..
-        var props = [];
-        this.genericBuildList('union', 'field', props, 'properties');
-        
-        if (GI.union_info_get_size (this.getBI()) > 0 ) { 
+        titleType: 'Union',
+        _loaded : false,
+        load : function()
+        {
+            if (this._loaded) {
+                return; // already loaded..
+            }
+            // my props..
+            var props = [];
+            this.genericBuildList('union', 'field', props, 'properties');
             
-            this.constructors.push({
-                name : '',
-                params: [],
-                returns :  [],
-                isConstructor : true,
-                isStatic : false,
-                memberOf : this.alias,
-                exceptions : [],
-                desc : ''
-            });
+            if (GI.union_info_get_size (this.getBI()) > 0 ) { 
+                
+                this.constructors.push({
+                    name : '',
+                    params: [],
+                    returns :  [],
+                    isConstructor : true,
+                    isStatic : false,
+                    memberOf : this.alias,
+                    exceptions : [],
+                    desc : ''
+                });
+            }
+            var methods = [];
+            this.genericBuildList('union', 'method', methods, 'methods');
+              
+            this._loaded  = true;
         }
-        var methods = [];
-        this.genericBuildList('union', 'method', methods, 'methods');
-          
-        this._loaded  = true;
-    },
-     
+         
 
-});
\ No newline at end of file
+});
\ No newline at end of file