Skip to content

Instantly share code, notes, and snippets.

cprcrack / gist:b592e0d8905c5706effd
Created Jun 30, 2014
Closures memory leak test
View gist:b592e0d8905c5706effd
var functionRefs = [];
function callMeBack(callback)
setTimeout(callback, 100);
functionRefs.push(callback); // If I comment this, the leak dissapears!!! -> But I can't do this, it's handled by Parse
You can’t perform that action at this time.