Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

与 lazysizes 一起使用时出现了个问题 #31

Closed
keywindy opened this issue Aug 17, 2017 · 2 comments
Closed

与 lazysizes 一起使用时出现了个问题 #31

keywindy opened this issue Aug 17, 2017 · 2 comments

Comments

@keywindy
Copy link

screenshot from 2017-08-17 11-31-17
screenshot from 2017-08-17 11-30-49

参考上面两个图
lazysizes 中执行 addEventListener('resize', debouncedUpdateElementsSizes); 时
在 eruda 中的 overrideEventTarget 里 this 即 addEvent 的 target / el 为 undefined
导致 lazysizes 无法正常执行

我没有整明白这里面到底是怎么引起的, 是否有需要将 addEvent 的 el 参数默认为 window ???

surunzi added a commit that referenced this issue Aug 17, 2017
@surunzi
Copy link
Member

surunzi commented Aug 17, 2017

修复了,需要等下个版本发布,急的话可以先在设置面板将“Catch Event Listeners”选项关闭。

@surunzi
Copy link
Member

surunzi commented Aug 20, 2017

1.2.5版已发布,可以下载看是否已修复该问题

@surunzi surunzi closed this as completed Aug 21, 2017
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

No branches or pull requests

2 participants