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

极端情况下widget初始化出错 #78

Open
army8735 opened this issue Jul 1, 2014 · 0 comments
Open

极端情况下widget初始化出错 #78

army8735 opened this issue Jul 1, 2014 · 0 comments

Comments

@army8735
Copy link
Member

army8735 commented Jul 1, 2014

高版本IE(>=10)下且widget被缓存,在head里use(widget),然后出现一个带有src属性的script标签。

由于标签阻断了dom树形成,此时document.body尚无,widget初始化时
https://github.com/aralejs/widget/blob/master/src/widget.js#L49
值为空,造成后续运行出错。

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

No branches or pull requests

1 participant