Created
March 28, 2018 07:01
-
-
Save vldvel/3399d8ee2d88221d06833c3dd0778b85 to your computer and use it in GitHub Desktop.
MutationObserver disconnect takeRecords
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
// stop observing | |
observer.disconnect(); | |
// empties observer instance and returns records | |
observer.takeRecords(); // -> MutationRecords |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment