I'd like to be able to have a function attached to an element which will only run once a click has been held on that element for a given amount of time.
There are several (1, 2, 3) questions relating to handling mouse holds in javascript; but these questions either use jQuery or relate to a more particular use case.
I'd like to implement something more general, and I feel like there ought to be a good answer on stack overflow for this problem.