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

Side by Side Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 14103010: Change hasSubscribers to hasListener. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library dart.dom.indexed_db; 1 library dart.dom.indexed_db;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:html_common'; 5 import 'dart:html_common';
6 import 'dart:nativewrappers'; 6 import 'dart:nativewrappers';
7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8 // for details. All rights reserved. Use of this source code is governed by a 8 // for details. All rights reserved. Use of this source code is governed by a
9 // BSD-style license that can be found in the LICENSE file. 9 // BSD-style license that can be found in the LICENSE file.
10 10
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 //TODO: Report stacktrace once issue 4061 is resolved. 1066 //TODO: Report stacktrace once issue 4061 is resolved.
1067 controller.addError(e); 1067 controller.addError(e);
1068 }); 1068 });
1069 1069
1070 request.onSuccess.listen((e) { 1070 request.onSuccess.listen((e) {
1071 Cursor cursor = request.result; 1071 Cursor cursor = request.result;
1072 if (cursor == null) { 1072 if (cursor == null) {
1073 controller.close(); 1073 controller.close();
1074 } else { 1074 } else {
1075 controller.add(cursor); 1075 controller.add(cursor);
1076 if (autoAdvance == true && controller.hasSubscribers) { 1076 if (autoAdvance == true && controller.hasListener) {
1077 cursor.next(); 1077 cursor.next();
1078 } 1078 }
1079 } 1079 }
1080 }); 1080 });
1081 return controller.stream; 1081 return controller.stream;
1082 } 1082 }
1083 } 1083 }
1084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1085 // for details. All rights reserved. Use of this source code is governed by a 1085 // for details. All rights reserved. Use of this source code is governed by a
1086 // BSD-style license that can be found in the LICENSE file. 1086 // BSD-style license that can be found in the LICENSE file.
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 1304
1305 // WARNING: Do not edit - generated code. 1305 // WARNING: Do not edit - generated code.
1306 1306
1307 1307
1308 @DocsEditable 1308 @DocsEditable
1309 @DomName('IDBAny') 1309 @DomName('IDBAny')
1310 abstract class _IDBAny extends NativeFieldWrapperClass1 { 1310 abstract class _IDBAny extends NativeFieldWrapperClass1 {
1311 _IDBAny.internal(); 1311 _IDBAny.internal();
1312 1312
1313 } 1313 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698