I have one <a>
tag and bind to it two events. How I can get information about other events attached to it?
The follow code explains what I mean:
<a href="#" id="sample" class="sample-cls">Click me</a>
$(function(){
$('#sample').live("click", function(){
sampleFunction();
})
$('.sample-cls').live("click", function(){
// How to get information that to this link
// is attached another event, that run sampleFunction() ?
})
})
Unfortunately, $('#sample').data('events')
doesn't include the events bound via live()
.