Skip to content

Instantly share code, notes, and snippets.

@why-jay
Last active August 29, 2015 14:12
Show Gist options
  • Save why-jay/24528edaf1657970811a to your computer and use it in GitHub Desktop.
Save why-jay/24528edaf1657970811a to your computer and use it in GitHub Desktop.
var theThing = null;
var replaceThing = function () {
var originalThing = theThing;
var unused = function () {
if (originalThing)
console.log("hi");
};
theThing = {
longStr: new Array(1000000).join('*'),
someMethod: function () {}
};
};
setInterval(replaceThing, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment