Skip to content

Commit bfda596

Browse files
committed
chore: update comments in index.js
1 parent 0da433c commit bfda596

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

index.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,13 @@ exports.handlers = {
2222
const fullPath = `${e.doclet.meta.path}/${e.doclet.meta.filename}`;
2323
const componentName = e.doclet.meta.filename.replace(/\.vue$/, '');
2424

25-
// if (e.doclet.memberof === 'module.exports') {
26-
// e.doclet.memberof = componentName
27-
// }
28-
//
29-
// if (e.doclet.longname.startsWith('module.exports.')) {
30-
// e.doclet.longname = e.doclet.longname.replace('module.exports.', componentName)
31-
// }
32-
3325
// The main doclet before `export default {}`
3426
if (e.doclet.longname === 'module.exports') {
3527
mainDocletLines[fullPath] = e.doclet.meta.lineno;
3628
}
3729

30+
// It can be the main doclet before `export default {}`
31+
// with at least one `@vue-*` tag
3832
if (e.doclet._isVueDoc) {
3933
const { renderer } = config['jsdoc-vuejs'];
4034
const props = e.doclet._vueProps || [];
@@ -51,6 +45,7 @@ exports.handlers = {
5145
delete e.doclet.meta;
5246
}
5347

48+
// Methods and hooks
5449
if (e.doclet.kind === 'function') {
5550
if (e.doclet.memberof.endsWith('.methods')) {
5651
e.doclet.scope = 'instance';

0 commit comments

Comments
 (0)