Closed wmadden closed 9 years ago
Their signatures are:
.on( events [, selector ] [, data ], handler(eventObject) ) .off( events [, selector ] [, handler(eventObject) ] )
.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.
events
Problem cases:
slice()
On case 2:
Uncaught TypeError: undefined is not a function
Line 66 fails.
if (event.slice(0, 5) == 'click')
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:
events
is a space-separated list of event names, possibly namespacedevents
is an object, which causes our subsequentslice()
call to explode