Created
April 10, 2015 19:03
-
-
Save mbenford/daee660193ff42077357 to your computer and use it in GitHub Desktop.
Monitoring DOM insertions and removals
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
document.addEventListener('DOMNodeInserted', function(event) { console.log('Inserted:', event.srcElement); }); | |
document.addEventListener('DOMNodeRemoved', function(event) { console.log('Removed:', event.srcElement); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment