tweaks code

This commit is contained in:
qingwei.li 2017-02-19 20:11:27 +08:00
commit 46ff5e14bf
2 changed files with 1 additions and 2 deletions

View file

@ -25,5 +25,4 @@ initGlobalAPI()
/** /**
* Run Docsify * Run Docsify
*/ */
setTimeout(_ => new Docsify(), 0) setTimeout(_ => new Docsify(), 0)

View file

@ -62,7 +62,7 @@ export function on (el, type, handler) {
: el.addEventListener(type, handler) : el.addEventListener(type, handler)
} }
export const off = function on (el, type, handler) { export function off (el, type, handler) {
isFn(type) isFn(type)
? window.removeEventListener(el, type) ? window.removeEventListener(el, type)
: el.removeEventListener(type, handler) : el.removeEventListener(type, handler)