What is the status of Weak References?

Brendan Eich brendan at mozilla.com
Sat Feb 2 14:32:12 PST 2013

David Bruant wrote:
> A view knows own its lifecycle, it involves adding observers in a 
> bunch of places. When the view lifecycle comes to an end for whatever 
> reason, it only makes sense that it removes the observers it added.

The problem is that the notification comes from a model object to the 
view via the observer. If the view holds the model object strongly, it 
can entrain the entire model. And if there is an association from model 
to view somewhere (which is not unreasonable, in a mostly self-hosted 
system), then....


More information about the es-discuss mailing list