| OLD | NEW |
| 1 part of observable; | |
| 2 | |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 6 | 4 |
| 7 /** | 5 /** |
| 8 * Accumulates change events from several observable objects. | 6 * Accumulates change events from several observable objects. |
| 9 * | 7 * |
| 10 * wrap() is public and used by client code. The other methods are used by | 8 * wrap() is public and used by client code. The other methods are used by |
| 11 * AbstractObservable, which works with this class to implement batching. | 9 * AbstractObservable, which works with this class to implement batching. |
| 12 */ | 10 */ |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 95 |
| 98 /** Fires all events at once. */ | 96 /** Fires all events at once. */ |
| 99 void _notify() { | 97 void _notify() { |
| 100 assert(!sealed); | 98 assert(!sealed); |
| 101 sealed = true; | 99 sealed = true; |
| 102 for (final summary in summaries.getValues()) { | 100 for (final summary in summaries.getValues()) { |
| 103 summary.notify(); | 101 summary.notify(); |
| 104 } | 102 } |
| 105 } | 103 } |
| 106 } | 104 } |
| OLD | NEW |