On 2/17/14, 11:25 AM, Kyle Huey wrote:
If you are observing several topics it's easy to forget to add a
Remove call when adding new observer topic.  If you instead write an
array of topics and iterate over that it's impossible to screw up
(e.g.https://hg.mozilla.org/mozilla-central/rev/3a8fe7c942e3).

To make leaking observers even impossibler, why not add addObservers() and removeObservers() helper functions to nsIObserverService?


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

Reply via email to