This repository has been archived on 2023-08-29. You can view files and clone it, but cannot push or open issues/pull-requests.
yutent
/
anot.js
Archived
1
0
Fork 0
master
宇天 2021-07-30 11:57:49 +08:00
parent 328a7ca6d5
commit ce9c8542a9
1 changed files with 4 additions and 4 deletions

View File

@ -272,10 +272,10 @@ Anot.mix({
let hook = hooks[t]
if (typeof hook === 'object') {
t = hook.type || t
phase = hook.phase || !!phase
phase = hook.phase || phase
fn = hook.fix ? hook.fix(el, fn) : fn
}
el.addEventListener(t, fn, phase)
el.addEventListener(t, fn, !!phase)
})
return fn
},
@ -289,9 +289,9 @@ Anot.mix({
let hook = hooks[t]
if (typeof hook === 'object') {
t = hook.type || t
phase = hook.phase || !!phase
phase = hook.phase || phase
}
el.removeEventListener(t, fn, phase)
el.removeEventListener(t, fn, !!phase)
})
},
/*读写删除元素节点的样式*/