Index: tools/dom/templates/html/impl/impl_Geolocation.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_Geolocation.darttemplate b/tools/dom/templates/html/impl/impl_Geolocation.darttemplate |
index 551881567286bf31b2190704110cf6844820801e..e1c84ac85eb8085064301c2e0bb9580d4e5afdac 100644 |
--- a/tools/dom/templates/html/impl/impl_Geolocation.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_Geolocation.darttemplate |
@@ -52,7 +52,10 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS |
} |
int watchId; |
- var controller; |
+ // TODO(jacobr): it seems like a bug that we have to specifiy the static |
+ // type here for controller.stream to have the right type. |
+ // dartbug.com/26278 |
+ StreamController<Geoposition> controller; |
controller = new StreamController<Geoposition>(sync: true, |
onListen: () { |
assert(watchId == null); |