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

Unified Diff: pkg/polymer_expressions/lib/eval.dart

Issue 71353012: Make sure 'enumerate' changes when the underlying collection changes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/polymer_expressions/lib/eval.dart
diff --git a/pkg/polymer_expressions/lib/eval.dart b/pkg/polymer_expressions/lib/eval.dart
index b774807d05d0665b57a0b69f230a5cce5e5b2a49..6ca92aba9771b6cf0049f14f04f26a550e228635 100644
--- a/pkg/polymer_expressions/lib/eval.dart
+++ b/pkg/polymer_expressions/lib/eval.dart
@@ -494,6 +494,10 @@ class BinaryObserver extends ExpressionObserver<BinaryOperator>
} else if (left._value == null || right._value == null) {
_value = null;
} else {
+ if (operator == '|' && left._value is ObservableList) {
+ _subscription = left._value.listChanges.listen(
+ (_) => _invalidate(scope));
+ }
_value = f(left._value, right._value);
}
}
« no previous file with comments | « no previous file | pkg/polymer_expressions/lib/src/globals.dart » ('j') | pkg/polymer_expressions/lib/src/globals.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698