OLD | NEW |
---|---|
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 * Support for observing changes in model-view architectures. | 6 * Support for observing changes in model-view architectures. |
7 * | 7 * |
8 * **Warning:** This library is experimental, and APIs are subject to change. | 8 * **Warning:** This library is experimental, and APIs are subject to change. |
9 * | 9 * |
10 * 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 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 * | 69 * |
70 * *Note*: it is good practice to keep `@reflectable` annotation on | 70 * *Note*: it is good practice to keep `@reflectable` annotation on |
71 * getters/setters so they are accessible via reflection. This will preserve | 71 * getters/setters so they are accessible via reflection. This will preserve |
72 * them from tree-shaking. You can also put this annotation on the class and it | 72 * them from tree-shaking. You can also put this annotation on the class and it |
73 * preserve all of its members for reflection. | 73 * preserve all of its members for reflection. |
74 * | 74 * |
75 * [Tools](https://www.dartlang.org/polymer-dart/) exist to convert the first | 75 * [Tools](https://www.dartlang.org/polymer-dart/) exist to convert the first |
76 * form into the second form automatically, to get the best of both worlds. | 76 * form into the second form automatically, to get the best of both worlds. |
77 */ | 77 */ |
78 library observe; | 78 library observe; |
79 import 'src/bind_property.dart'; | |
80 import 'src/change_notifier.dart'; | |
81 import 'src/change_record.dart'; | |
82 import 'src/compound_path_observer.dart'; | |
83 import 'src/list_path_observer.dart'; | |
84 import 'src/list_diff.dart'; | |
85 import 'src/metadata.dart'; | |
86 import 'src/observable.dart'; | |
87 import 'src/observable_box.dart'; | |
88 import 'src/observable_list.dart'; | |
89 import 'src/observable_map.dart'; | |
90 import 'src/path_observer.dart'; | |
91 import 'src/to_observable.dart'; | |
92 | 79 |
80 // This library contains code is inspired by observe-js: | |
Siggi Cherem (dart-lang)
2014/02/03 22:52:48
remove "is"/rephrase?
Jennifer Messerly
2014/02/04 00:33:06
Done.
| |
81 // https://github.com/Polymer/observe-js/blob/0152d542350239563d0f2cad39d22d3254 bd6c2a/src/observe.js | |
82 // ...which underlies TemplateBinding. Since we don't need all of the | |
83 // functionality of observe-js, we port what is needed for data bindings. | |
84 // Most of the functionality is implemented, except where differences are needed | |
85 // due to Dart's different Observable functionality. | |
93 | 86 |
87 export 'src/bindable.dart'; | |
94 export 'src/bind_property.dart'; | 88 export 'src/bind_property.dart'; |
95 export 'src/change_notifier.dart'; | 89 export 'src/change_notifier.dart'; |
96 export 'src/change_record.dart'; | 90 export 'src/change_record.dart'; |
97 export 'src/compound_path_observer.dart'; | |
98 export 'src/list_path_observer.dart'; | 91 export 'src/list_path_observer.dart'; |
99 export 'src/list_diff.dart' show ListChangeRecord; | 92 export 'src/list_diff.dart' show ListChangeRecord; |
100 export 'src/metadata.dart'; | 93 export 'src/metadata.dart'; |
101 export 'src/observable.dart' hide notifyPropertyChangeHelper, objectType; | 94 export 'src/observable.dart' hide notifyPropertyChangeHelper, objectType; |
102 export 'src/observable_box.dart'; | 95 export 'src/observable_box.dart'; |
103 export 'src/observable_list.dart'; | 96 export 'src/observable_list.dart'; |
104 export 'src/observable_map.dart'; | 97 export 'src/observable_map.dart'; |
98 export 'src/observer_transform.dart'; | |
105 export 'src/path_observer.dart'; | 99 export 'src/path_observer.dart'; |
106 export 'src/to_observable.dart'; | 100 export 'src/to_observable.dart'; |
OLD | NEW |