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

Unified Diff: samples/maps/directions.dart

Issue 10908291: Reapply "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 | « lib/core/object.dart ('k') | samples/ui_lib/util/CollectionUtils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/maps/directions.dart
diff --git a/samples/maps/directions.dart b/samples/maps/directions.dart
index c510a1733a27614187fa051c4548545553407001..e48fe037305cdb64a71be6213516c5a042cefd43 100644
--- a/samples/maps/directions.dart
+++ b/samples/maps/directions.dart
@@ -38,16 +38,16 @@ main() {
'center': new LatLng(47.6097, -122.3331)
};
var map = new GMap('#map_canvas', myOptions);
-
+
directionsDisplay = new DirectionsRenderer(map);
directionsDisplay.setPanel('#directions_panel');
directionsService = new DirectionsService();
var control = document.query('#control');
control.style.display = 'block';
-
- map.controls[ControlPosition.TOP].dynamic.push('#control');
+
+ (map.controls[ControlPosition.TOP] as Dynamic).push('#control');
query('#start').on.change.add(calcRoute);
query('#end').on.change.add(calcRoute);
-}
+}
« no previous file with comments | « lib/core/object.dart ('k') | samples/ui_lib/util/CollectionUtils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698