mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-09 13:26:34 +10:00
tweaks code
This commit is contained in:
@@ -25,5 +25,4 @@ initGlobalAPI()
|
||||
/**
|
||||
* Run Docsify
|
||||
*/
|
||||
|
||||
setTimeout(_ => new Docsify(), 0)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user