Skip to content

Commit 78600db

Browse files
committed
Merge branch 'afsmith92-constructor-examples'
2 parents 732464d + 614e554 commit 78600db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/transform.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function createConstructor (class_) {
145145
replacements.push(class_)
146146

147147
/* only output a constructor if it's documentated */
148-
if (constructor.description || (constructor.params && constructor.params.length)) {
148+
if (constructor.description || (constructor.params && constructor.params.length) || constructor.examples) {
149149
constructor.id = class_.id
150150
constructor.longname = class_.longname
151151
constructor.name = class_.codeName || class_.name

0 commit comments

Comments
 (0)