Created
May 30, 2017 04:32
-
-
Save etoxin/97bf8e486be122c35635a44f1e9c07ed to your computer and use it in GitHub Desktop.
Native JS Stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.body.addEventListener('click', (event) => { | |
if (event.target.className === 'class-name') { | |
// do stuff. | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment