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

Unified Diff: pkg/barback/lib/src/transform_node.dart

Issue 36463002: Fix a synchrony bug in barback. (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
Index: pkg/barback/lib/src/transform_node.dart
diff --git a/pkg/barback/lib/src/transform_node.dart b/pkg/barback/lib/src/transform_node.dart
index 6df431540abf424db33bf94c2efa608a75a01b7e..6c6d9eba38847986822b67a8bfcede0aad6b4cfe 100644
--- a/pkg/barback/lib/src/transform_node.dart
+++ b/pkg/barback/lib/src/transform_node.dart
@@ -160,7 +160,7 @@ class TransformNode {
// If the asset node is found, wait until its contents are actually
// available before we return them.
- return node.whenAvailable.then((asset) {
+ return node.whenAvailable((asset) {
_inputSubscriptions.putIfAbsent(node.id,
() => node.onStateChange.listen((_) => _dirty()));

Powered by Google App Engine
This is Rietveld 408576698