// @class
var classes = this.comment.getTag("class");
if (classes.length) {
+ print(JSON.stringify(this,null,4));
this.isa = "CONSTRUCTOR";
this.classDesc = classes[0].desc; // desc can't apply to the constructor as there is none.
if (!this.classDesc) {
// @static
if (this.comment.getTag("singleton").length) {
this.isStatic = true;
- //if (this.isa == "CONSTRUCTOR") {
- // this.isNamespace = true;
- //}
+ print('------------- got singleton ---------------' + this.isa);
+ if (this.isa == "CONSTRUCTOR") {
+ this.isNamespace = true;
+ }
}
if (memberOfs.length) {
this.memberOf = memberOfs[0].desc;
this.memberOf = this.memberOf.replace(/\.prototype\.?/g, "#");
+ this.name = this.name.split('.').pop();
+ this.name = this.name.split('#').pop();
+ this.name = this.memberOf + this.name;
+ this._name = this.name
+ this.alias = this.name;
}
/*~t
ns[i] = t[i];
}
return ns;
-}
\ No newline at end of file
+}