On 3/22/14, 7:26 AM, K. Gadd wrote: > The window and children example is intended to illustrate > that manual cycle-breaking is non-trivial; in this case it requires a > robust reference counting mechanism and code audits to ensure > reference increments/decrements are carefully matched and put in every > necessary location.
Kevin, I don't think that's true. Would you please state the desired behavior for your example, what leaks, and how you would fix it using weak references? It seems like you're under the impression that the JS engine doesn't collect cycles. It does. -j _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform