Skip to content

Conversation

@Beace
Copy link

@Beace Beace commented Nov 15, 2018

No description provided.

@miniflycn
Copy link
Member

可以优化下

@Beace
Copy link
Author

Beace commented Nov 15, 2018

感觉去遍历节点和循环添加事件都有些复杂度和性能损伤,纠结中...有什么点子可以点播下么 @miniflycn

@miniflycn
Copy link
Member

sorry,没仔细看,以为没有 parentNode,或者 parentElement 的方法都是错的,后来发现你们使用的是event.path,这个可以,但是好像不兼容所有浏览器。

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