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

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

Issue 61793008: Fix in compound path observer: this fixes the error we saw in our manual testing (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/lib/src/compound_path_observer.dart
diff --git a/pkg/observe/lib/src/compound_path_observer.dart b/pkg/observe/lib/src/compound_path_observer.dart
index 6fee6897cd24b45b5bbec4231e48cba4172563b0..1594e082c5b1bbddc5efe12f488454675eb06600 100644
--- a/pkg/observe/lib/src/compound_path_observer.dart
+++ b/pkg/observe/lib/src/compound_path_observer.dart
@@ -85,6 +85,7 @@ class CompoundPathObserver extends ChangeNotifier {
void _resolve() {
_scheduled = false;
+ if (_observers.isEmpty) return;
Siggi Cherem (dart-lang) 2013/11/08 18:37:00 turns out that the schedule happens when there wer
var newValue = _observers.map((o) => o.value).toList();
if (_computeValue != null) newValue = _computeValue(newValue);
_value = notifyPropertyChange(#value, _value, newValue);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698