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

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

Issue 26967004: add @MirrorsUsed to observe/polymer/polymer_exprs pkgs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo in comment 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
Index: pkg/observe/lib/src/observable.dart
diff --git a/pkg/observe/lib/src/observable.dart b/pkg/observe/lib/src/observable.dart
index c5c56abe1fc208ce9db21ce968e40af29ad36ad2..721b6138c4f0db6eb34faf25d4d4f71bf139ef22 100644
--- a/pkg/observe/lib/src/observable.dart
+++ b/pkg/observe/lib/src/observable.dart
@@ -5,11 +5,6 @@
part of observe;
/**
- * Use `@observable` to make a field automatically observable.
- */
-const ObservableProperty observable = const ObservableProperty();
-
-/**
* Interface representing an observable object. This is used by data in
* model-view architectures to notify interested parties of [changes].
*
@@ -217,19 +212,3 @@ _notifyPropertyChange(Observable obj, Symbol field, Object oldValue,
}
return newValue;
}
-
-
-/**
- * An annotation that is used to make a property observable.
- * Normally this is used via the [observable] constant, for example:
- *
- * class Monster {
- * @observable int health;
- * }
- *
- * If needed, you can subclass this to create another annotation that will also
- * be treated as observable.
- */
-class ObservableProperty {
- const ObservableProperty();
-}

Powered by Google App Engine
This is Rietveld 408576698