forked from cybrespace/pinafore
code cleanup
This commit is contained in:
parent
2614e451b2
commit
cd9365cddb
|
@ -15,11 +15,10 @@ function onEvent (e) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
mark('delegate onEvent')
|
mark('delegate onEvent')
|
||||||
let attr = `delegate-key`
|
|
||||||
let key
|
let key
|
||||||
let element = target
|
let element = target
|
||||||
while (element) {
|
while (element) {
|
||||||
if ((key = element.getAttribute(attr))) {
|
if ((key = element.getAttribute('delegate-key'))) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
element = element.parentElement
|
element = element.parentElement
|
||||||
|
|
Loading…
Reference in New Issue