jquery/jquery-mobile — Issue #3339: taphold causes Uncaught TypeError
Author: dilbert-elbonia
Created: 2011-12-27 10:47:45+00:00
State: open

Basically if an event-handler is attached to a "taphold" event it dies in the following manner:

Uncaught TypeError: Cannot read property 'disabled' of undefined
jQuery.event.dispatch jquery-1.7.1.js:3206
triggerCustomEvent jquery.mobile-1.0.js:1006
(anonymous function) jquery.mobile-1.0.js:1089

The code uses jquery 1.7.1 and jquery-mobile 1.0.

Here is the forum entry:
http://forum.jquery.com/topic/delegate-taphold-uncaught-typeerror
I think the forum describes correctly the issue. Also the existing code fires "tap" and "taphold" simultaneously which I think is incorrect behavior. It should fire "tap" OR "taphold"