iegorov
2/2/2014 - 3:13 PM

Stoppint event propagation

Stoppint event propagation

$('*').add([document, wiondow]).on('click', function(e) {
  e.stopPropagation();
  console.log('target',e.target);
  console.log('current target', e.currentTarget);
});