javascript - Checking if jQuery .hover action is already binded -
this question has answer here:
is there way check if element has action, triggered jquery .hover function?
you can check checking element.data('events')['eventname']
in case of hover, be:
var hashover = x.data('events')['mouseover'] && x.data('events')['mouseout']; in jquery 1.8 , later, must access using $._data mentioned in this answer
i.e.
var events = $._data(obj[0], "events"); var hashover = events['mouseover'] && events['mouseout'];
Comments
Post a Comment