@Steven,
I know anonymous functions are horrible, but I was trying to anything to get
the GC to pick it up.
I'm really just testing, to see how GC might react, and how the weak event
listeners work. I know mediocre practice (and higher) you need to remove
event listeners. I was just wondering, I'v
I make destroy methods, avoid using extra references to listeners and am
compulsive about cleaning them up, still some continue to execute
imperviously.
I hate when this happens cause its unpredictable and unexplainable.
All I know is the "Real" garbage collectors are sometimes late picking
up
No, it's not true. You're misunderstanding how weak listeners work, how
anonymous functions work (you shouldn't use those anyway), and you're also
misunderstanding how the garbage collector works.
Whenever you addEventListener, immediately write a function that removes the
event listener (suc
3 matches
Mail list logo