Skip to content

Instantly share code, notes, and snippets.

@liamcurry
Created January 24, 2017 17:37
Show Gist options
  • Save liamcurry/e046ff08629d382a0d14504846d66251 to your computer and use it in GitHub Desktop.
Save liamcurry/e046ff08629d382a0d14504846d66251 to your computer and use it in GitHub Desktop.
document.body.addEventListener('click', function(e) {
var el = e.target;
if (el.matches('.traffic.widget .tabs__tab')) {
console.log('match');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment