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

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

Issue 10914286: Remove Object.dynamic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review smells. 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 4062212c3104da7086816eda23e8669c068e9cab..8d633ea06f005f7c4196f2cb722359a6157d686e 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.dynamic.length : null);
+ List result = new List(source is List ? (source as List).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