On 3/23/14 1:38 AM, Jim Blandy wrote:
For example, suppose we had:

     observerService.addSettingObserver(obj, "dirty", true)

which promises to set obj's 'dirty' property to true. If obj is
collected, this observer can obviously be dropped.

How do we know when "obj" is collected?

Or put another way, how does this proposal differ from the already existing ownsWeak argument of nsIObserverService.addObserver that was discussed earlier in this thread?

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to