code cleanup

This commit is contained in:
Nolan Lawson 2018-02-28 19:16:11 -08:00
parent 2614e451b2
commit cd9365cddb
1 changed files with 1 additions and 2 deletions

View File

@ -15,11 +15,10 @@ function onEvent (e) {
return
}
mark('delegate onEvent')
let attr = `delegate-key`
let key
let element = target
while (element) {
if ((key = element.getAttribute(attr))) {
if ((key = element.getAttribute('delegate-key'))) {
break
}
element = element.parentElement