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

Unified Diff: samples/ui_lib/util/CollectionUtils.dart

Issue 10933122: Revert "Remove Object.dynamic." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « samples/maps/directions.dart ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/ui_lib/util/CollectionUtils.dart
diff --git a/samples/ui_lib/util/CollectionUtils.dart b/samples/ui_lib/util/CollectionUtils.dart
index 8d633ea06f005f7c4196f2cb722359a6157d686e..4062212c3104da7086816eda23e8669c068e9cab 100644
--- a/samples/ui_lib/util/CollectionUtils.dart
+++ b/samples/ui_lib/util/CollectionUtils.dart
@@ -46,7 +46,7 @@ class CollectionUtils {
static List map(Iterable source, var mapper) {
// TODO(jmesserly): I was trying to set the capacity here, but instead it
// seems to create a fixed list. Hence assigning by index below.
- List result = new List(source is List ? (source as List).length : null);
+ List result = new List(source is List ? source.dynamic.length : null);
int i = 0;
for (final item in source) {
result[i++] = mapper(item);
« no previous file with comments | « samples/maps/directions.dart ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698