projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9c306eb
)
JSDOC/Introspect/Base.js
author
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 09:29:25 +0000
(17:29 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 28 Jun 2010 09:29:25 +0000
(17:29 +0800)
JSDOC/Introspect/Base.js
patch
|
blob
|
history
diff --git
a/JSDOC/Introspect/Base.js
b/JSDOC/Introspect/Base.js
index
8a2bd26
..
e8fb686
100644
(file)
--- 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;
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;
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.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();
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 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));
}
if (!cls) {
console.log("COULD NOT FIND Introspect: " + type[0].toUpperCase() + type.substring(1));
}