Skip to content

Conversation

@EmberYu
Copy link

@EmberYu EmberYu commented Nov 15, 2018

感觉这题的关键在于对于相同的事件,不论注册多少个代理事件,Dom树中只监听了一个函数。所以这里加了个delegatorEventList,如果有对应的事件类型,就往数组中增加一个需要被代理的目标元素和对应事件,如果没有就增加一个事件监听

image

@EmberYu EmberYu changed the title 🎉 (delegator): pass all tests 贤鱼:pass all tests Nov 15, 2018
@miniflycn
Copy link
Member

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants