From 44ca92e9fb4d758a0d3c81aa5299bf886301a671 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 28 Jun 2010 17:29:25 +0800 Subject: [PATCH] JSDOC/Introspect/Base.js --- JSDOC/Introspect/Base.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/JSDOC/Introspect/Base.js b/JSDOC/Introspect/Base.js index 8a2bd26..e8fb686 100644 --- a/JSDOC/Introspect/Base.js +++ b/JSDOC/Introspect/Base.js @@ -5,10 +5,10 @@ GLib = imports.gi.GLib; xml = imports.libxml; //GObject = imports.gi.GObject; -imports['Object.js'].load(Object); - -console = imports['console.js'].console; +XObject = imports.XObject.XObject; +console = imports.console.console; +NameSpace = imports.NameSpace.NameSpace; Introspect = imports['JSDOC/Introspect.js'].Introspect; Basic = imports['JSDOC/Introspect/Basic.js'].Basic; @@ -53,7 +53,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 +106,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)); } -- 2.39.2