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

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

Issue 23199004: Support passing barback assets through phases in which they're unused. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/barback.dart
diff --git a/pkg/barback/lib/src/barback.dart b/pkg/barback/lib/src/barback.dart
index 27c4d472f2b677e6c3083532ff58c511234006fa..3dcb23e66d166996a44b27bd55c3606041e794aa 100644
--- a/pkg/barback/lib/src/barback.dart
+++ b/pkg/barback/lib/src/barback.dart
@@ -73,7 +73,7 @@ class Barback {
Future<Asset> getAssetById(AssetId id) {
return _graph.getAssetNode(id).then((node) {
if (node == null) throw new AssetNotFoundException(id);
- return node.whenAvailable;
+ return node.asset;
});
}

Powered by Google App Engine
This is Rietveld 408576698