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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 for (int i = srcStart, j = dstStart; i < srcStart + count; i++, j++) { | 253 for (int i = srcStart, j = dstStart; i < srcStart + count; i++, j++) { |
254 dst[j] = src[i]; | 254 dst[j] = src[i]; |
255 } | 255 } |
256 } | 256 } |
257 } | 257 } |
258 | 258 |
259 void setRange(int start, int end, List from, [int startFrom = 0]) { | 259 void setRange(int start, int end, List from, [int startFrom = 0]) { |
260 throw new UnimplementedError(); | 260 throw new UnimplementedError(); |
261 } | 261 } |
262 | 262 |
263 void removeRange(int start, int length) { | 263 void removeRange(int start, int end) { |
264 throw new UnimplementedError(); | 264 throw new UnimplementedError(); |
265 } | 265 } |
266 | 266 |
267 void insertRange(int start, int length, [initialValue = null]) { | 267 void insertRange(int start, int length, [initialValue = null]) { |
268 throw new UnimplementedError(); | 268 throw new UnimplementedError(); |
269 } | 269 } |
270 | 270 |
271 List sublist(int start, [int end]) { | 271 List sublist(int start, [int end]) { |
272 throw new UnimplementedError(); | 272 throw new UnimplementedError(); |
273 } | 273 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 // Only fire on an actual change. | 339 // Only fire on an actual change. |
340 if (!identical(newValue, _value)) { | 340 if (!identical(newValue, _value)) { |
341 final oldValue = _value; | 341 final oldValue = _value; |
342 _value = newValue; | 342 _value = newValue; |
343 recordPropertyUpdate("value", newValue, oldValue); | 343 recordPropertyUpdate("value", newValue, oldValue); |
344 } | 344 } |
345 } | 345 } |
346 | 346 |
347 T _value; | 347 T _value; |
348 } | 348 } |
OLD | NEW |