Created
January 5, 2017 17:04
-
-
Save stevegreatrex/50162aeb81af74211a1f080cd9f5a87d to your computer and use it in GitHub Desktop.
Cleaning up resources with MutationObserver: Initial Version
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
class MyD3Component { | |
constructor(targetElement: HTMLElement) { | |
//create some resources that need to be cleaned up | |
} | |
dispose() { | |
//clean up my resources | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment