質問

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