Created
January 28, 2016 18:34
-
-
Save alexblom/ae6d8acc474d38bb10c6 to your computer and use it in GitHub Desktop.
Sample JS Memory Leak
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
var node = $("#node"); | |
var nodeAgain = $("#node"); | |
var body = $("body"); | |
body.removeChild(node); | |
node = null; | |
nodeAgain = null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment