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

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

Issue 50313004: Revert "Remove @deprecated features." (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/src/observable.dart ('k') | pkg/polymer/lib/component_build.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/lib/src/observable_map.dart
diff --git a/pkg/observe/lib/src/observable_map.dart b/pkg/observe/lib/src/observable_map.dart
index 1223ca335f1bfed90ba762d64244cf11b47c8640..d4da6461725ed7fa29f5f4b7293f1a033523a232 100644
--- a/pkg/observe/lib/src/observable_map.dart
+++ b/pkg/observe/lib/src/observable_map.dart
@@ -39,6 +39,10 @@ class MapChangeRecord<K, V> extends ChangeRecord {
MapChangeRecord.remove(this.key, this.oldValue)
: isInsert = false, isRemove = true;
+ /// *Deprecated* compare [key]s instead.
+ @deprecated
+ bool changes(otherKey) => key == otherKey;
+
String toString() {
var kind = isInsert ? 'insert' : isRemove ? 'remove' : 'set';
return '#<MapChangeRecord $kind $key from: $oldValue to: $newValue>';
« no previous file with comments | « pkg/observe/lib/src/observable.dart ('k') | pkg/polymer/lib/component_build.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698