Skip to content

Commit c9d1687

Browse files
Merge pull request #140 from adamhickey/master
Fixes TypeError when attempting to call copyFrom on an undefined comment.
2 parents 7b78de8 + 9a3bd4a commit c9d1687

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/typedoc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5240,7 +5240,9 @@ var td;
52405240
if (target instanceof td.models.SignatureReflection && target.parameters &&
52415241
source instanceof td.models.SignatureReflection && source.parameters) {
52425242
for (var index = 0, count = target.parameters.length; index < count; index++) {
5243-
target.parameters[index].comment.copyFrom(source.parameters[index].comment);
5243+
if (target.parameters[index].comment) {
5244+
target.parameters[index].comment.copyFrom(source.parameters[index].comment);
5245+
}
52445246
}
52455247
}
52465248
}

0 commit comments

Comments
 (0)