| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 } | 262 } |
| 263 | 263 |
| 264 void insertRange(int start, int length, [initialValue = null]) { | 264 void insertRange(int start, int length, [initialValue = null]) { |
| 265 throw new UnimplementedError(); | 265 throw new UnimplementedError(); |
| 266 } | 266 } |
| 267 | 267 |
| 268 List sublist(int start, [int end]) { | 268 List sublist(int start, [int end]) { |
| 269 throw new UnimplementedError(); | 269 throw new UnimplementedError(); |
| 270 } | 270 } |
| 271 | 271 |
| 272 List getRange(int start, int length) { | 272 Iterable getRange(int start, int end) { |
| 273 throw new UnimplementedError(); | 273 throw new UnimplementedError(); |
| 274 } | 274 } |
| 275 | 275 |
| 276 bool contains(T element) { | 276 bool contains(T element) { |
| 277 throw new UnimplementedError(); | 277 throw new UnimplementedError(); |
| 278 } | 278 } |
| 279 | 279 |
| 280 T reduce(T combine(T previousValue, T element)) { | 280 T reduce(T combine(T previousValue, T element)) { |
| 281 throw new UnimplementedError(); | 281 throw new UnimplementedError(); |
| 282 } | 282 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 // Only fire on an actual change. | 335 // Only fire on an actual change. |
| 336 if (!identical(newValue, _value)) { | 336 if (!identical(newValue, _value)) { |
| 337 final oldValue = _value; | 337 final oldValue = _value; |
| 338 _value = newValue; | 338 _value = newValue; |
| 339 recordPropertyUpdate("value", newValue, oldValue); | 339 recordPropertyUpdate("value", newValue, oldValue); |
| 340 } | 340 } |
| 341 } | 341 } |
| 342 | 342 |
| 343 T _value; | 343 T _value; |
| 344 } | 344 } |
| OLD | NEW |