Closed GoogleCodeExporter closed 8 years ago
IMO registerDisposable adds more bloat to the library than value.
Until now one had to remember to call dispose() on the child objects. Now they
have to remember to call registerDisposable.
Original comment by pall...@google.com
on 24 May 2011 at 2:59
On the other hand objects usually don't only dispose of their children, but
they also null them out. Even if they use registerDisposable, they have to
implement disposeInternal as well.
Original comment by pall...@google.com
on 24 May 2011 at 3:03
Can you please stop marking my issues as WontFix before there is any sort of
open discussion on them? It would be much more helpful to add comments to
the code review first than to make a unilateral decision to close the issue
before other team members have a chance to look at it.
As you can see here, there are other Googlers who are interested in this
change:
http://groups.google.com/group/closure-library-discuss/browse_thread/thread/b7b5
6cf982f5473e
<http://groups.google.com/group/closure-library-discuss/browse_thread/thread/b7b
56cf982f5473e>You
only need to "null out" references to "children" when they are COM objects,
such as DOM nodes and XHRs on Internet Explorer. Because a subclass of
goog.Disposable is not a COM object, it will not be an issue for such
objects, which is the overwhelming majority of cases.
Original comment by bolinf...@gmail.com
on 24 May 2011 at 7:46
Original comment by Nicholas.J.Santos
on 25 May 2011 at 3:13
This issue was closed by revision r976.
Original comment by Nicholas.J.Santos
on 27 May 2011 at 8:08
Original issue reported on code.google.com by
bolinf...@gmail.com
on 17 May 2011 at 3:30