Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. function avoidGC(variable) { // where variable is an object, an array or a function
  2. window._noGC = window._noGC || [];
  3. window._noGC.push(variable);
  4. }
  5.  
  6. // uses
  7. // avoidGC({ a: 1 })
  8. // avoidGC({ b: 2 })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement