X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=Introspect%2FClass.js;h=9a6ee94b6c97de4ab0915b30c63407245c53fd45;hp=515e7fe800b2340515273636c4255d3ed66a1ea2;hb=HEAD;hpb=7b935edeb5380264358ba798711b5fb5f3a1cb63 diff --git a/Introspect/Class.js b/Introspect/Class.js index 515e7fe..9a6ee94 100644 --- a/Introspect/Class.js +++ b/Introspect/Class.js @@ -25,7 +25,7 @@ Base = imports.Base.Base; Class = XObject.define( function(ns, name) { Base.call(this, ns, name); - print("Class ctr - parent called"); + //print("Class ctr - parent called"); this.loadExtends(); this.loadImplements(); //console.log("CREATED(Class) " + this.alias); @@ -56,9 +56,21 @@ Class = XObject.define( this.extendsClasses.push(p); },this); + if (this.parent) { + this.parent.addChildClass(this.alias); + } }, + + addChildClass : function (n) { + this.childClasses.push(n); + if (this.parent) { + this.parent.addChildClass(n); + } + }, + + loadImplements : function() { var bb = this.getBI();