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

Unified Diff: tools/dom/templates/html/impl/impl_Geolocation.darttemplate

Issue 14103010: Change hasSubscribers to hasListener. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. Created 7 years, 8 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: 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 11e52b7af31d079eeb3c565dd8186a60d8cfbdc3..19447c27f7a833eece15178adbd5dbb54a6dcd99 100644
--- a/tools/dom/templates/html/impl/impl_Geolocation.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Geolocation.darttemplate
@@ -55,7 +55,7 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
var controller;
controller = new StreamController<Geoposition>(
onSubscriptionStateChange: () {
- if (controller.hasSubscribers) {
+ if (controller.hasListener) {
assert(watchId == null);
watchId = $dom_watchPosition(
(position) {
« no previous file with comments | « tests/lib/async/stream_state_helper.dart ('k') | tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698