Answer the question
In order to leave comments, you need to log in
jquery check for live handler?
Are there any developments on the subject?
It is clear that isDefaultPrevented does not work (which is a pity :)).
It is necessary in order to execute the function in the event that no handler is attached to the element (including live and direct attachments).
Of course, you can add a special class for such elements, for example, but you don’t want to shovel the entire html code.
Thanks
Answer the question
In order to leave comments, you need to log in
Write a wrapper for live (something like jQuery.fn.my_live) that uses data() to mark the hung handler in the object, and then calls live. And throughout the code, replace live with my_live. In the future, using data, look for a mark in the object: if it is not there, then there is no handler.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question