Skip to content

Commit 146e486

Browse files
committed
remove unnecessary _init call
1 parent 07dda0a commit 146e486

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/core/Docsify.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ export class Docsify extends multiple(
1616
renderMixin,
1717
fetchMixin,
1818
eventMixin
19-
) {
20-
constructor() {
21-
super();
22-
this._init();
23-
}
24-
}
19+
) {}
2520

2621
/**
2722
* Global API

src/core/init/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import config from '../config';
22

33
export function initMixin(Base = class {}) {
44
return class extends Base {
5-
_init() {
5+
constructor() {
6+
super();
7+
68
this.config = config(this);
79

810
this.initLifecycle(); // Init hooks

0 commit comments

Comments
 (0)