File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -186,8 +186,6 @@ function dumpObject(node,isClass) {
186
186
var returns = node . returns || "any" ;
187
187
node . params = node . params || "" ;
188
188
var name = node . name ;
189
- if ( name === "ctor" )
190
- name = "constructor" ;
191
189
192
190
// Constructors are implicitly static
193
191
if ( name === "constructor" ) {
@@ -448,6 +446,10 @@ exports.handlers = {
448
446
}
449
447
}
450
448
449
+ if ( e . doclet . name === "ctor" ) {
450
+ thisNode . params = "...p:any" ;
451
+ thisNode . returns = "any" ;
452
+ }
451
453
if ( e . doclet . name === 'create' ) {
452
454
thisNode . params = "...p:any" ;
453
455
thisNode . returns = "any" ;
@@ -465,7 +467,7 @@ exports.handlers = {
465
467
thisNode . params = "...p:any" ;
466
468
}
467
469
if ( e . doclet . name === 'addChild' ) {
468
- thisNode . params = "child:Node,localZOrder:number,tag:number|string|Point" ;
470
+ thisNode . params = "child:Node,localZOrder:number,tag? :number|string|Point" ;
469
471
}
470
472
if ( e . doclet . name === 'removeChild' ) {
471
473
thisNode . params = "child:Node" ;
You can’t perform that action at this time.
0 commit comments