| 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 /** A change to an observable instance. */ | 5 /** A change to an observable instance. */ |
| 8 class ChangeEvent { | 6 class ChangeEvent { |
| 9 // TODO(sigmund): capture language issues around enums & create a cannonical | 7 // TODO(sigmund): capture language issues around enums & create a cannonical |
| 10 // Dart enum design. | 8 // Dart enum design. |
| 11 /** Type denoting an in-place update event. */ | 9 /** Type denoting an in-place update event. */ |
| 12 static const UPDATE = 0; | 10 static const UPDATE = 0; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 for (final listener in obj.listeners) { | 77 for (final listener in obj.listeners) { |
| 80 listener(this); | 78 listener(this); |
| 81 } | 79 } |
| 82 } | 80 } |
| 83 } | 81 } |
| 84 } | 82 } |
| 85 } | 83 } |
| 86 | 84 |
| 87 /** A listener of change events. */ | 85 /** A listener of change events. */ |
| 88 typedef void ChangeListener(EventSummary events); | 86 typedef void ChangeListener(EventSummary events); |
| OLD | NEW |