Вопрос

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