From: Alan Knowles Date: Mon, 28 Jun 2010 09:37:20 +0000 (+0800) Subject: JSDOC/Introspect/Property.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=da1c57900a430ab599be84fa035ec4973a89c5ed JSDOC/Introspect/Property.js --- diff --git a/JSDOC/Introspect/Property.js b/JSDOC/Introspect/Property.js index 6630106..832152f 100644 --- a/JSDOC/Introspect/Property.js +++ b/JSDOC/Introspect/Property.js @@ -2,21 +2,22 @@ //Gtk = imports.gi.Gtk; GI = imports.gi.GIRepository; -imports['Object.js'].load(Object); -console = imports['console.js'].console; +XObject = imports.XObject.XObject; +console = imports.console.console; +NameSpace = imports.NameSpace.NameSpace; +Basic = imports.Basic.Basic; -Introspect = imports['JSDOC/Introspect.js'].Introspect; -Basic = imports['JSDOC/Introspect/Basic.js'].Basic; + /** * Property */ -Property = Object.define( +Property = XObject.define( function(prop, memberOf, saveto, keylist) { this.propertyType = 'Property'; var n_original = GI.base_info_get_name(prop); @@ -26,13 +27,13 @@ Property = Object.define( this.memberOf = memberOf.alias memberOf[saveto].push(this); keylist.push(this.name); - this.desc = Introspect.doc(this.memberOf + '.' + n_original); + this.desc = NameSpace.doc(this.memberOf + '.' + n_original); if (typeof(this.type) == 'string' && this.type.indexOf('.') > -1) { - Introspect.references[this.type] = Introspect.references[this.type] || []; - Introspect.references[this.type].push(this); + NameSpace.references[this.type] = NameSpace.references[this.type] || []; + NameSpace.references[this.type].push(this); } },