benhowdle89/touche — pull request #12 by davidey (2013-12-12 15:59:00+00:00)
Title: Fixes on jQuery related portion of the code

Hi!

I've started using this library yesterday (thanks for it!), but soon realised that the jQuery support is broken.

First of all, click events are never converted to touchend events, as this line is wrong
``````
if( event.slice(0, 4) == 'click' )
``````
(event.slice(0, 4) returns 'clic')

It's definitely a critical bug, and it's fixed in the first commit.

Second bug is around jQuery.off(): you can on() a click event, and that's converted into a touchend event, but if you try to off() it won't work. Fixed in the second commit.

Let me know if you need more info!

Cheers,
Davide.