-
-
Save anton-gorbikov/ee2645b94c83bbc23bad03a0634c275e 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
window.myFunc = (function() { | |
var collectedObject = { | |
someData: document.querySelector('#myId') | |
}, | |
retainedObject = { | |
someData: 'sample string' | |
}; | |
collectedObject.someData.parentNode.removeChild(collectedObject.someData); | |
return function() { | |
debugger; | |
eval('console.log(retainedObject.someData)'); | |
} | |
})(); | |
window.myFunc(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment