MCPcopy
hub / github.com/docsifyjs/docsify / constructor

Method constructor

src/core/Docsify.js:19–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 Events(Render(VirtualRoutes(Router(Lifecycle(Object)))))
18) {
19 constructor() {
20 super();
21
22 this.config = config(this);
23
24 this.initLifecycle(); // Init hooks
25 this.initPlugin(); // Install plugins
26 this.callHook('init');
27 this.initRouter(); // Add router
28 this.initRender(); // Render base DOM
29 this.initEvent(); // Bind events
30 this.initFetch(); // Fetch data
31 this.callHook('mounted');
32 }
33
34 initPlugin() {
35 [].concat(this.config.plugins).forEach(fn => {

Callers

nothing calls this directly

Calls 8

initPluginMethod · 0.95
configFunction · 0.85
initLifecycleMethod · 0.80
callHookMethod · 0.80
initRouterMethod · 0.80
initRenderMethod · 0.80
initEventMethod · 0.80
initFetchMethod · 0.80

Tested by

no test coverage detected