X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=Introspect%2FBase.js;fp=JSDOC%2FIntrospect%2FBase.js;h=9876fb52e993b67ce32bc8d1a4d150d8fd087c8e;hp=8a2bd2689c3bcb85581f34812df9ee341b9eb8fd;hb=134619d3049edce9b27810483e8011e5dfb783e0;hpb=649a91296eb2d7e5cbd4d1407deb9c1fa714229f diff --git a/JSDOC/Introspect/Base.js b/Introspect/Base.js similarity index 93% rename from JSDOC/Introspect/Base.js rename to Introspect/Base.js index 8a2bd26..9876fb5 100644 --- a/JSDOC/Introspect/Base.js +++ b/Introspect/Base.js @@ -5,12 +5,11 @@ GLib = imports.gi.GLib; xml = imports.libxml; //GObject = imports.gi.GObject; -imports['Object.js'].load(Object); +XObject = imports.XObject.XObject; +console = imports.console.console; -console = imports['console.js'].console; - -Introspect = imports['JSDOC/Introspect.js'].Introspect; -Basic = imports['JSDOC/Introspect/Basic.js'].Basic; +NameSpace = imports.NameSpace.NameSpace; +Basic = imports.Basic.Basic; @@ -22,7 +21,7 @@ Basic = imports['JSDOC/Introspect/Basic.js'].Basic; -Base = Object.define( +Base = XObject.define( function(ns, name) { // fake should not happen? @@ -53,7 +52,7 @@ Base = Object.define( this.implementedBy = []; // interface - which object uses it. this.extendsClasses = []; // what it extends... this.childClasses = []; // what - this.desc = Introspect.doc(this.alias ); + this.desc = NameSpace.doc(this.alias ); var gi = GI.IRepository.get_default(); @@ -106,7 +105,8 @@ Base = Object.define( var bb = this.getBI(); var _this = this; //console.log("ADD " + type[0].toUpperCase() + type.substring(1)); - var cls = Introspect[type[0].toUpperCase() + type.substring(1)]; // ucfirst. + var clname = type[0].toUpperCase() + type.substring(1); + var cls = imports[clname][clname]; if (!cls) { console.log("COULD NOT FIND Introspect: " + type[0].toUpperCase() + type.substring(1)); }