Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankFang committed Apr 17, 2017
1 parent 273a94b commit e81cc49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ let dom = {
element.addEventListener(eventType, e => {
let el = e.target
while (!el.matches(selector)) {
el = el.parentNode
if (element === el) {
el = null
break
}
el = el.parentNode
}
el && fn.call(el, e, el)
})
Expand Down

0 comments on commit e81cc49

Please sign in to comment.