Index: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart |
diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart |
index b2d2fc2ed665eb1616ad704830a30930e0808dbe..a6d84a6df8fd70af3deacfa10c08c44e2a143ed1 100644 |
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart |
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart |
@@ -1014,7 +1014,7 @@ class ObjectStore native "*IDBObjectStore" { |
controller.close(); |
} else { |
controller.add(cursor); |
- if (autoAdvance == true && controller.hasSubscribers) { |
+ if (autoAdvance == true && controller.hasListener) { |
cursor.next(); |
} |
} |