X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=Introspect%2FClass.js;fp=JSDOC%2FIntrospect%2FClass.js;h=dba5f90f645171486316afb389e3554ee1fd704c;hp=08a103bded579c5d522a7e3ccdea6fbeceb8b5d4;hb=134619d3049edce9b27810483e8011e5dfb783e0;hpb=649a91296eb2d7e5cbd4d1407deb9c1fa714229f diff --git a/JSDOC/Introspect/Class.js b/Introspect/Class.js similarity index 92% rename from JSDOC/Introspect/Class.js rename to Introspect/Class.js index 08a103b..dba5f90 100644 --- a/JSDOC/Introspect/Class.js +++ b/Introspect/Class.js @@ -4,14 +4,13 @@ GI = imports.gi.GIRepository; GLib = imports.gi.GLib; xml = imports.libxml; //GObject = imports.gi.GObject; -imports['Object.js'].load(Object); + + +XObject = imports.XObject.XObject; +console = imports.console.console; +NameSpace = imports.NameSpace.NameSpace; -console = imports['console.js'].console; - - - -Introspect = imports['JSDOC/Introspect.js'].Introspect; -Base = imports['JSDOC/Introspect/Base.js'].Base; +Base = imports.Base.Base; @@ -23,7 +22,7 @@ Base = imports['JSDOC/Introspect/Base.js'].Base; -Class = Object.define( +Class = XObject.define( function(ns, name) { Base.call(this, ns, name); this.loadExtends(); @@ -43,7 +42,7 @@ Class = Object.define( if (!pi) { return; } - this.parent = Introspect.factory( + this.parent = NameSpace.factory( 'Class', GI.base_info_get_namespace(pi), GI.base_info_get_name(pi) @@ -70,7 +69,7 @@ Class = Object.define( var prop = GI.object_info_get_interface(bb,i); - var iface = Introspect.factory( + var iface = NameSpace.factory( 'Interface', GI.base_info_get_namespace(prop) , GI.base_info_get_name(prop) ); @@ -136,7 +135,7 @@ Class = Object.define( this.genericImplements( signals, 'signals'); - Introspect.references[this.alias] = Introspect.references[this.alias] || []; + NameSpace.references[this.alias] = NameSpace.references[this.alias] || []; if (this.alias == 'GObject.Object') { this._loaded = true; return;