Index: sdk/lib/html/dart2js/html_dart2js.dart |
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
index e10b483dd0c81c8cefff5661b11eb6dfe7c0e7b2..a944e004dea9fcf246f2bfb389bcef7e1941bcae 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -11391,7 +11391,7 @@ class Geolocation native "*Geolocation" { |
var controller; |
controller = new StreamController<Geoposition>( |
onSubscriptionStateChange: () { |
- if (controller.hasSubscribers) { |
+ if (controller.hasListener) { |
assert(watchId == null); |
watchId = $dom_watchPosition( |
(position) { |