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

Unified Diff: pkg/observe/lib/observe.dart

Issue 27618002: package:observe fix various api issues (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « pkg/observe/lib/html.dart ('k') | pkg/observe/lib/src/bind_property.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/lib/observe.dart
diff --git a/pkg/observe/lib/observe.dart b/pkg/observe/lib/observe.dart
index 29d868e25b98542a275f8d863201bfa849a3d67f..abce718a95062e29d1ee9b913785482828941b05 100644
--- a/pkg/observe/lib/observe.dart
+++ b/pkg/observe/lib/observe.dart
@@ -13,7 +13,7 @@
* You can provide an observable object in two ways. The simplest way is to
* use dirty checking to discover changes automatically:
*
- * class Monster extends Unit with ObservableMixin {
+ * class Monster extends Unit with Observable {
* @observable int health = 100;
*
* void damage(int amount) {
@@ -41,7 +41,7 @@
* manually. This avoids the potentially expensive [Observable.dirtyCheck]
* operation, but requires more work in the object:
*
- * class Monster extends Unit with ChangeNotifierMixin {
+ * class Monster extends Unit with ChangeNotifier {
* int _health = 100;
* @reflectable get health => _health;
* @reflectable set health(val) {
@@ -88,6 +88,8 @@ import 'dart:collection';
override: 'observe')
import 'dart:mirrors';
+import 'package:meta/meta.dart';
+
// Note: this is an internal library so we can import it from tests.
// TODO(jmesserly): ideally we could import this with a prefix, but it caused
// strange problems on the VM when I tested out the dirty-checking example
« no previous file with comments | « pkg/observe/lib/html.dart ('k') | pkg/observe/lib/src/bind_property.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698