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

Unified Diff: samples/maps/directions.dart

Issue 10914286: 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
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');
kasperl 2012/09/14 07:56:33 Hmm. This is a bit smelly.
Lasse Reichstein Nielsen 2012/09/17 11:58:06 You think? :) Sadly, I have no idea what is going
query('#start').on.change.add(calcRoute);
query('#end').on.change.add(calcRoute);
-}
+}

Powered by Google App Engine
This is Rietveld 408576698