Last active
September 11, 2017 16:14
-
-
Save nitayneeman/bc1c7cad2008df630afc0beaeba265ca to your computer and use it in GitHub Desktop.
This file contains 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 node = document.querySelector('.some-element'); | |
const observer = new MutationObserver((mutations) => { | |
mutations.forEach((mutation) => console.log(mutation)); | |
}); | |
observer.observe(node, { | |
attributes: true, | |
childList: true, | |
characterData: true | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment