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

Side by Side Diff: pkg/observe/lib/observe.dart

Issue 23441054: one-liners for a few polymer-related libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tweak Created 7 years, 3 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 /** 5 /**
6 * *Warning*: this library is experimental, and APIs are subject to change. 6 * Support for observing changes in model-view architectures.
7 *
8 * **Warning:** This library is experimental, and APIs are subject to change.
7 * 9 *
8 * This library is used to observe changes to [Observable] types. It also 10 * This library is used to observe changes to [Observable] types. It also
9 * has helpers to make implementing and using [Observable] objects easy. 11 * has helpers to make implementing and using [Observable] objects easy.
10 * 12 *
11 * You can provide an observable object in two ways. The simplest way is to 13 * You can provide an observable object in two ways. The simplest way is to
12 * use dirty checking to discover changes automatically: 14 * use dirty checking to discover changes automatically:
13 * 15 *
14 * class Monster extends Unit with ObservableMixin { 16 * class Monster extends Unit with ObservableMixin {
15 * @observable int health = 100; 17 * @observable int health = 100;
16 * 18 *
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 part 'src/change_notifier.dart'; 86 part 'src/change_notifier.dart';
85 part 'src/change_record.dart'; 87 part 'src/change_record.dart';
86 part 'src/compound_binding.dart'; 88 part 'src/compound_binding.dart';
87 part 'src/list_path_observer.dart'; 89 part 'src/list_path_observer.dart';
88 part 'src/observable.dart'; 90 part 'src/observable.dart';
89 part 'src/observable_box.dart'; 91 part 'src/observable_box.dart';
90 part 'src/observable_list.dart'; 92 part 'src/observable_list.dart';
91 part 'src/observable_map.dart'; 93 part 'src/observable_map.dart';
92 part 'src/path_observer.dart'; 94 part 'src/path_observer.dart';
93 part 'src/to_observable.dart'; 95 part 'src/to_observable.dart';
OLDNEW
« pkg/custom_element/lib/custom_element.dart ('K') | « pkg/mdv/lib/mdv.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698