More commits to sync working copy
[gnome.introspection-doc-generator] / JSDOC / Introspect / Callback.js
index 4146a09..143cf3a 100644 (file)
@@ -4,42 +4,44 @@ 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;
 Basic = imports['JSDOC/Introspect/Basic.js'].Basic;
 
 
 
-Callback = function(sig, memberOf, saveto, keylist) {
+Callback = Object.define(
+    function(sig, memberOf, saveto, keylist) {
 
-    
-    var params = this.argsToArrays(sig);
-    // add a reference to self...
-    /*params.unshift({
-        name : 'self',
-        type : memberOf.alias,
-        direction : 'in',
-        be_null :  false
+        
+        var params = this.argsToArrays(sig);
+        // add a reference to self...
+        /*params.unshift({
+            name : 'self',
+            type : memberOf.alias,
+            direction : 'in',
+            be_null :  false
+                
+        });
+        */
+        
+        Object.extend(this,{
+            name : GI.base_info_get_name(sig),
+            params : params,
+            //memberOf : memberOf.alias,
+            exceptions : [],
+            returns :   [ { type :  this.typeToName(GI.callable_info_get_return_type(sig)) } ]            
             
-    });
-    */
-    
-    Roo.apply(this,{
-        name : GI.base_info_get_name(sig),
-        params : params,
-        //memberOf : memberOf.alias,
-        exceptions : [],
-        returns :   [ { type :  this.typeToName(GI.callable_info_get_return_type(sig)) } ]            
+        });
+        this.desc =  Introspect.doc(memberOf.alias + '.' + this.name);
+        //memberOf[saveto].push(this);
+        //keylist.push(this.name);
         
-    });
-    this.desc =  Introspect.doc(memberOf.alias + '.' + this.name);
-    //memberOf[saveto].push(this);
-    //keylist.push(this.name);
-    
-}
-Roo.extend(Callback,Basic);
+    },
+    Basic,
+    {}
+);