문제

I've been using the Google FastButton code to add instant clicks on mobile devices for some time now, but I've never been able to get the destroy method to work.

Can anyone give me any pointers on how to remove a FastButton event from an element? I'm using Alex Black's jQuery wrapper (https://github.com/alexblack/google-fastbutton) to add a 'fastClick' to an element, so it would be even better if I could work out how to destroy through that.

Many thanks,

T.

도움이 되었습니까?

해결책

Just use unbind() to remove the fastClick handler from your button i.e.

$('#mybutton').unbind('fastClick');
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top