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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -