JSDOC/Introspect/Property.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 28 Jun 2010 09:37:20 +0000 (17:37 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 28 Jun 2010 09:37:20 +0000 (17:37 +0800)
JSDOC/Introspect/Property.js

index 6630106..832152f 100644 (file)
@@ -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);
         }
         
     },