dciccale/kimbo.js

Delegated event is fired twice

tenbits opened this issue · 0 comments

Assume the markup:

<ul>
    <li> <div> foo </div> </li>
</ul>

and the javascript:

$('ul').on('click', 'li', function(event){
    console.log(event.currentTarget.tagName);
})

Should log only once the LI, but it comes twice: first DIV, then LI

Cheers