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

Unified Diff: lib/observe.dart

Issue 12096106: work in progress: observable implementation using detailed change records (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « example/todomvc/model.dart ('k') | lib/observe/expression.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/observe.dart
diff --git a/lib/observe.dart b/lib/observe.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f5e58449062d880c5d7e8ff9b5a04e2660f0da01
--- /dev/null
+++ b/lib/observe.dart
@@ -0,0 +1,25 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+/**
+ * A library for observing changes to observable Dart objects.
+ * Similar in spirit to EcmaScript 6
+ * [Object.observe](http://wiki.ecmascript.org/doku.php?id=harmony:observe), but
+ * able to observe expressions as well as objects, so long as the expressions
+ * are computed from observable objects.
+ *
+ * See the [observable] annotation, [Observable] base class, and the [observe]
+ * function.
+ */
+// TODO(jmesserly): this library is independent of web_ui, and can be factored
+// out into its own package. However, the compiler transform for @observable
+// requires web_ui compiler, until we get buildtool support for it.
+library web_ui.observe;
+
+export 'observe/expression.dart';
+export 'observe/list.dart';
+export 'observe/map.dart';
+export 'observe/observable.dart';
+export 'observe/reference.dart';
+export 'observe/set.dart';
« no previous file with comments | « example/todomvc/model.dart ('k') | lib/observe/expression.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698