| OLD | NEW |
| 1 // 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 |
| 2 // 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 |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library observable; | 5 library observable; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 part 'ChangeEvent.dart'; | 9 part 'ChangeEvent.dart'; |
| 10 part 'EventBatch.dart'; | 10 part 'EventBatch.dart'; |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 } | 260 } |
| 261 | 261 |
| 262 void removeRange(int start, int length) { | 262 void removeRange(int start, int length) { |
| 263 throw new UnimplementedError(); | 263 throw new UnimplementedError(); |
| 264 } | 264 } |
| 265 | 265 |
| 266 void insertRange(int start, int length, [initialValue = null]) { | 266 void insertRange(int start, int length, [initialValue = null]) { |
| 267 throw new UnimplementedError(); | 267 throw new UnimplementedError(); |
| 268 } | 268 } |
| 269 | 269 |
| 270 List sublist(int start, [int end]) { |
| 271 throw new UnimplementedError(); |
| 272 } |
| 273 |
| 270 List getRange(int start, int length) { | 274 List getRange(int start, int length) { |
| 271 throw new UnimplementedError(); | 275 throw new UnimplementedError(); |
| 272 } | 276 } |
| 273 | 277 |
| 274 bool contains(T element) { | 278 bool contains(T element) { |
| 275 throw new UnimplementedError(); | 279 throw new UnimplementedError(); |
| 276 } | 280 } |
| 277 | 281 |
| 278 dynamic reduce(var initialValue, | 282 dynamic reduce(var initialValue, |
| 279 dynamic combine(var previousValue, T element)) { | 283 dynamic combine(var previousValue, T element)) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 // Only fire on an actual change. | 334 // Only fire on an actual change. |
| 331 if (!identical(newValue, _value)) { | 335 if (!identical(newValue, _value)) { |
| 332 final oldValue = _value; | 336 final oldValue = _value; |
| 333 _value = newValue; | 337 _value = newValue; |
| 334 recordPropertyUpdate("value", newValue, oldValue); | 338 recordPropertyUpdate("value", newValue, oldValue); |
| 335 } | 339 } |
| 336 } | 340 } |
| 337 | 341 |
| 338 T _value; | 342 T _value; |
| 339 } | 343 } |
| OLD | NEW |