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

事件无法解绑 #23

Open
hasbug opened this issue Jan 14, 2016 · 2 comments
Open

事件无法解绑 #23

hasbug opened this issue Jan 14, 2016 · 2 comments

Comments

@hasbug
Copy link

hasbug commented Jan 14, 2016

发现drag的事件无法解绑。
touch.off('#target', 'drag');
touch.off('#target', 'dragend');
无效。
有绑定了,应该这么解绑吧?

@hasbug hasbug changed the title tap目前多少毫秒处理? 事件无法解绑 Jan 26, 2016
@yuanxj1024
Copy link

我也遇到这个问题了,发现官网上有:

事件处理函数, 移除函数与绑定函数必须为同一引用。具体参数说明,同“事件代理”方法中的“callback”参数说明。

这么一段,就是说,解绑时得传入绑定是的处理回调才行

@zzhao5
Copy link

zzhao5 commented Dec 20, 2016

v0.2.14 2015-11-10

这个版本可以正常解绑了

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

3 participants