JSDOC/Introspect/NameSpace.js
[gnome.introspection-doc-generator] / JSDOC / Introspect / NameSpace.js
index 5a367d3..3158093 100644 (file)
@@ -9,19 +9,9 @@ XObject = imports.XObject.XObject;
 
 console = imports.console.console;
 
-
-//xnew    = imports['xnew.js'].xnew;
-
  
 
-
-//Introspect = {};
-
-//xnew.load(Introspect,'JSDOC/Introspect');
-
-
-
-Introspect = {
+NameSpace = {
     
    
     references : { }, 
@@ -111,7 +101,7 @@ Introspect = {
                     ret.interfaces.push(GI.base_info_get_name(info));
                     continue;
                 case  GI.IInfoType.FUNCTION:
-                    new Introspect.Method(info, ret, 'functions', []);    
+                    new imports.Method.Method(info, ret, 'functions', []);    
                     continue;
                 
                 case  GI.IInfoType.CALLBACK:
@@ -133,7 +123,7 @@ Introspect = {
                     ret.unions.push(GI.base_info_get_name(info));
                     continue;
                 case  GI.IInfoType.CONSTANT:
-                    new Introspect.Constant(info, ret, 'values', []);
+                    new imports.Constant.Constant(info, ret, 'values', []);
                     
                     continue;
                 
@@ -291,15 +281,13 @@ Introspect = {
     registry : { },
     factory : function(type, ns, name) {
         if (typeof (this.registry[ns +'.' + name]) == 'undefined') {
-            this.registry[ns +'.' + name] = new Introspect[type](ns,name);
+            this.registry[ns +'.' + name] = new imports[type][type](ns,name);
             this.registry[ns +'.' + name].load();
         }
         
         return this.registry[ns +'.' + name];
     }
         
-            
-    
 });