X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=JSDOC%2FIntrospect%2FNameSpace.js;h=31580935c97ce80955ddbfa90b8fd70777b4e5c1;hp=5a367d3eef3ff6a2f57ff33d2b561e4ba02691f5;hb=88e024434069e82608da505ad0f9b9fabb81f9f6;hpb=fd7daa1ea3adb204f900ae2ec3dea63aceac5922 diff --git a/JSDOC/Introspect/NameSpace.js b/JSDOC/Introspect/NameSpace.js index 5a367d3..3158093 100644 --- a/JSDOC/Introspect/NameSpace.js +++ b/JSDOC/Introspect/NameSpace.js @@ -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]; } - - });