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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 for (int i = srcStart, j = dstStart; i < srcStart + count; i++, j++) { | 250 for (int i = srcStart, j = dstStart; i < srcStart + count; i++, j++) { |
251 dst[j] = src[i]; | 251 dst[j] = src[i]; |
252 } | 252 } |
253 } | 253 } |
254 } | 254 } |
255 | 255 |
256 void setRange(int start, int end, Iterable iterable, [int skipCount = 0]) { | 256 void setRange(int start, int end, Iterable iterable, [int skipCount = 0]) { |
257 throw new UnimplementedError(); | 257 throw new UnimplementedError(); |
258 } | 258 } |
259 | 259 |
260 void removeRange(int start, int length) { | 260 void removeRange(int start, int end) { |
261 throw new UnimplementedError(); | 261 throw new UnimplementedError(); |
262 } | 262 } |
263 | 263 |
264 void insertRange(int start, int length, [initialValue = null]) { | |
265 throw new UnimplementedError(); | |
266 } | |
267 | |
268 List sublist(int start, [int end]) { | 264 List sublist(int start, [int end]) { |
269 throw new UnimplementedError(); | 265 throw new UnimplementedError(); |
270 } | 266 } |
271 | 267 |
272 Iterable getRange(int start, int end) { | 268 Iterable getRange(int start, int end) { |
273 throw new UnimplementedError(); | 269 throw new UnimplementedError(); |
274 } | 270 } |
275 | 271 |
276 bool contains(T element) { | 272 bool contains(T element) { |
277 throw new UnimplementedError(); | 273 throw new UnimplementedError(); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 // Only fire on an actual change. | 331 // Only fire on an actual change. |
336 if (!identical(newValue, _value)) { | 332 if (!identical(newValue, _value)) { |
337 final oldValue = _value; | 333 final oldValue = _value; |
338 _value = newValue; | 334 _value = newValue; |
339 recordPropertyUpdate("value", newValue, oldValue); | 335 recordPropertyUpdate("value", newValue, oldValue); |
340 } | 336 } |
341 } | 337 } |
342 | 338 |
343 T _value; | 339 T _value; |
344 } | 340 } |
OLD | NEW |