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

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

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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 | « packages/observe/CHANGELOG.md ('k') | packages/observe/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/observe/lib/src/observable_list.dart
diff --git a/packages/observe/lib/src/observable_list.dart b/packages/observe/lib/src/observable_list.dart
index 912c4fc2a3ec1af0c04981671ac1c216041031c8..9d09b38d560b43844f98b40f7d2ea2ff44a28cdd 100644
--- a/packages/observe/lib/src/observable_list.dart
+++ b/packages/observe/lib/src/observable_list.dart
@@ -91,7 +91,7 @@ class ObservableList<E> extends ListBase<E> with ChangeNotifier {
@reflectable void operator []=(int index, E value) {
var oldValue = _list[index];
- if (hasListObservers) {
+ if (hasListObservers && oldValue != value) {
_recordChange(new ListChangeRecord(this, index, addedCount: 1,
removed: [oldValue]));
}
« no previous file with comments | « packages/observe/CHANGELOG.md ('k') | packages/observe/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698