Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function avoidGC(variable) { // where variable is an object, an array or a function
- window._noGC = window._noGC || [];
- window._noGC.push(variable);
- }
- // uses
- // avoidGC({ a: 1 })
- // avoidGC({ b: 2 })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement