Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: samples/swarm/swarm_ui_lib/observable/observable.dart

Issue 12096042: Remove import of collection-dev. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Really keep collection-dev in js-library for now. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 import 'dart:collection-dev';
9 8
10 part 'ChangeEvent.dart'; 9 part 'ChangeEvent.dart';
11 part 'EventBatch.dart'; 10 part 'EventBatch.dart';
12 11
13 /** 12 /**
14 * An object whose changes are tracked and who can issue events notifying how it 13 * An object whose changes are tracked and who can issue events notifying how it
15 * has been changed. 14 * has been changed.
16 */ 15 */
17 abstract class Observable { 16 abstract class Observable {
18 /** Returns a globally unique identifier for the object. */ 17 /** Returns a globally unique identifier for the object. */
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // Only fire on an actual change. 323 // Only fire on an actual change.
325 if (!identical(newValue, _value)) { 324 if (!identical(newValue, _value)) {
326 final oldValue = _value; 325 final oldValue = _value;
327 _value = newValue; 326 _value = newValue;
328 recordPropertyUpdate("value", newValue, oldValue); 327 recordPropertyUpdate("value", newValue, oldValue);
329 } 328 }
330 } 329 }
331 330
332 T _value; 331 T _value;
333 } 332 }
OLDNEW
« no previous file with comments | « pkg/serialization/lib/src/format.dart ('k') | sdk/lib/_internal/compiler/implementation/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698