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

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

Issue 368883004: Fix typo in observe-list (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « no previous file | pkg/observe/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/lib/src/observable_list.dart
diff --git a/pkg/observe/lib/src/observable_list.dart b/pkg/observe/lib/src/observable_list.dart
index 4a6b56a6ef3513369ea74b540df4ddb54fbe4109..3972fe62fde39e1b8d6f7ccb43438bfbf385e5f9 100644
--- a/pkg/observe/lib/src/observable_list.dart
+++ b/pkg/observe/lib/src/observable_list.dart
@@ -247,7 +247,11 @@ class ObservableList<E> extends ListBase<E> with ChangeNotifier {
notifyPropertyChange(#isNotEmpty, oldValue != 0, newValue != 0);
}
- void discardListChages() {
+ /// Deprecated. Name had a typo, use [discardListChanges] instead.
+ @deprecated
+ void discardListChages() => discardListChanges();
+
+ void discardListChanges() {
// Leave _listRecords set so we don't schedule another delivery.
if (_listRecords != null) _listRecords = [];
}
« no previous file with comments | « no previous file | pkg/observe/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698