benhowdle89 / touche

Effortlessly re-map click events to touch events on touchscreen UIs
http://benhowdle.im/touche
MIT License
605 stars 49 forks source link

jQuery.on() and .off() have several unhandled overloads #13

Closed wmadden closed 9 years ago

wmadden commented 10 years ago

Their signatures are:

.on( events [, selector ] [, data ], handler(eventObject) ) .off( events [, selector ] [, handler(eventObject) ] )

but touche.js only handles the trivial case where events is a single event name.

Problem cases:

idomusha commented 9 years ago

On case 2:

Uncaught TypeError: undefined is not a function

Line 66 fails.

if (event.slice(0, 5) == 'click')