diff --git a/src/core/index.js b/src/core/index.js index 98b262e..d72e96a 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -25,5 +25,4 @@ initGlobalAPI() /** * Run Docsify */ - setTimeout(_ => new Docsify(), 0) diff --git a/src/core/util/dom.js b/src/core/util/dom.js index bbd3601..b6f16ae 100644 --- a/src/core/util/dom.js +++ b/src/core/util/dom.js @@ -62,7 +62,7 @@ export function on (el, type, handler) { : el.addEventListener(type, handler) } -export const off = function on (el, type, handler) { +export function off (el, type, handler) { isFn(type) ? window.removeEventListener(el, type) : el.removeEventListener(type, handler)