Last active
September 19, 2018 09:06
-
-
Save andreasvirkus/0072d8530ac35e4b99a302196152b123 to your computer and use it in GitHub Desktop.
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
const nodeList = document.getElementsByTag('a') | |
// Nothing else to it! | |
[].forEach.call(nodeList, e => { | |
e.addEventListener('click', controller) | |
}) | |
// or | |
for (const el of document.querySelectorAll('.tippy-popper')) { | |
el.addEventListener('click', slickAsF) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment