Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 4b6c45e

Browse files
committed
doc(watch_group): Fix comments
To sync with 3de00bd
1 parent 88d111a commit 4b6c45e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/change_detection/watch_group.dart

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ class WatchGroup implements _EvalWatchList, _WatchGroupList {
5959

6060
/** [ChangeDetector] used for field watching */
6161
final ChangeDetectorGroup<_Handler> _changeDetector;
62-
/** A cache for sharing sub expression watching. Watching `a` and `a.b` will
63-
* watch `a` only once. */
6462
final RootWatchGroup _rootGroup;
6563

6664
/// STATS: Number of field watchers which are in use.
@@ -277,9 +275,8 @@ class WatchGroup implements _EvalWatchList, _WatchGroupList {
277275
/**
278276
* Create a new child [WatchGroup].
279277
*
280-
* - [context] if present the the child [WatchGroup] expressions will evaluate
281-
* against the new [context]. If not present than child expressions will
282-
* evaluate on same context allowing the reuse of the expression cache.
278+
* - [context] if present the the child [WatchGroup] expressions will evaluate against the new
279+
* [context]. If not present than child expressions will evaluate on same context.
283280
*/
284281
WatchGroup newGroup([Object context]) {
285282
_EvalWatchRecord prev = _childWatchGroupTail._evalWatchTail;
@@ -576,8 +573,6 @@ abstract class _Handler implements _LinkedList, _LinkedListItem, _WatchList {
576573
bool release() {
577574
if (_WatchList._isEmpty(this) && _LinkedList._isEmpty(this)) {
578575
_releaseWatch();
579-
// Remove ourselves from cache, or else new registrations will go to us,
580-
// but we are dead
581576

582577
if (forwardingHandler != null) {
583578
// TODO(misko): why do we need this check?

0 commit comments

Comments
 (0)