Skip to content

Instantly share code, notes, and snippets.

@mason-stewart
Created March 4, 2011 19:41
Show Gist options
  • Save mason-stewart/855572 to your computer and use it in GitHub Desktop.
Save mason-stewart/855572 to your computer and use it in GitHub Desktop.
document.getElementById('the_div').addEventListener(
'click', function(){ log('the_div!') }, false);
document.getElementById('the_list').addEventListener(
'click', function(){ log('the_list!') }, false);
document.getElementById('the_item').addEventListener(
'click', function(){ log('the_item!'); event.stopPropagation(); }, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment