More commits to sync working copy
[gnome.introspection-doc-generator] / JSDOC / Introspect / Struct.js
index 50be288..02a4362 100644 (file)
@@ -1,13 +1,13 @@
 //<script type="text/javascript">
-//Gtk = imports.gi.Gtk;
+
 GI      = imports.gi.GIRepository;
-GLib    = imports.gi.GLib;
-xml     = imports.libxml;
-//GObject = imports.gi.GObject;
+
+imports['Object.js'].load(Object);
+
 
 console = imports['console.js'].console;
 JSDOC   = imports['JSDOC.js'].JSDOC;
-Roo     = imports['Roo.js'].Roo;
+
 
 
 Introspect = imports['JSDOC/Introspect.js'].Introspect;
@@ -16,48 +16,49 @@ Base = imports['JSDOC/Introspect/Base.js'].Base;
  * Struct
  */
 
-Struct = function(ns, name) {
-    Base.call(this, ns, name);
-   
-}
-
-Roo.extend(Struct, Base, 
-{
-    titleType: 'Struct',
-    
-    _loaded : false,
-    load : function()
+Struct = Object.define(
+    function(ns, name) {
+        Base.call(this, ns, name);
+       
+    },
+
+    Base, 
     {
-        if (this._loaded) {
-            return; // already loaded..
-        }
-        // my props..
-        var props = [];
-        this.genericBuildList('struct', 'field', props, 'properties');
-        
-        var methods = [];
-        
-        
-        if (GI.struct_info_get_size (this.getBI()) > 0 ) {
-           
+        titleType: 'Struct',
         
+        _loaded : false,
+        load : function()
+        {
+            if (this._loaded) {
+                return; // already loaded..
+            }
+            // my props..
+            var props = [];
+            this.genericBuildList('struct', 'field', props, 'properties');
             
-            this.constructors.push({
-                name : '',
-                params: [],
-                returns :  [],
-                isConstructor : true,
-                isStatic : false,
-                memberOf : this.alias,
-                exceptions : [],
-                desc : ''
-            });
-        }
-        
-        this.genericBuildList('struct', 'method', methods, 'methods');
-          
-        this._loaded  = true;
-    },
-     
+            var methods = [];
+            
+            
+            if (GI.struct_info_get_size (this.getBI()) > 0 ) {
+               
+            
+                
+                this.constructors.push({
+                    name : '',
+                    params: [],
+                    returns :  [],
+                    isConstructor : true,
+                    isStatic : false,
+                    memberOf : this.alias,
+                    exceptions : [],
+                    desc : ''
+                });
+            }
+            
+            this.genericBuildList('struct', 'method', methods, 'methods');
+              
+            this._loaded  = true;
+        },
+         
 
 });
\ No newline at end of file