3 ms·
As an additional note, you'll only run into "zombie event" problems if you have to throw away views and models that are bound together at different times. If y
by jashkenas 15y ago
As an additional note, you'll only run into "zombie event" problems if you have to throw away views and models that are bound together at different times.
If you tend to throw away models and their corresponding views together, then you never have to unbind anything, and it's all GC'd by JavaScript naturally.
- rdpfeffer 15y agoNice. Yeah, I don't know enough about GC and how it does detecting cycles, but I can see how that would fix the problem. As We haven't addressed local caching of data yet, we're still just holding everything in memory. Therefore, for us many of our models never get thrown away. Definitely Something to watch out for.