Created
June 14, 2018 11:08
-
-
Save ssougnez/57f894fc408a1abb284cc9f1b4e65d2d 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
setTimeout(() => { | |
div.innerText = "I've been updated!"; | |
div.innerText = "And changed again..."; | |
}, 1000); | |
... | |
observer.observe(div, { | |
subtree: true, | |
characterData: true, | |
characterDataOldValue: true, | |
childList: true | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment