-
Notifications
You must be signed in to change notification settings - Fork 42
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
destroy时移除了额外的dom事件 #55
Labels
Comments
@afc163 误伤问题还是没有解决啊, |
特别是外部传入 element 的情况,很难保证原来在这个 element 上没有别的dom事件的绑定,直接一个 |
也加个判断好了,如果是 widget 生成的才做处理 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
代码在这:https://github.com/aralejs/widget/blob/master/src/widget.js#L324
this.element.off()
方法移除了 element 上的全部jquery绑定的 dom 事件,但是 如果element本来就有dom事件,而且和widget无关呢 。这样的使用就 误伤了 !The text was updated successfully, but these errors were encountered: