Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 8edf918

Browse files
committed
review updates
- Follow new convention for naming constants.
1 parent e956f24 commit 8edf918

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

public/docs/_examples/pipes/dart/lib/hero_async_message_component.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'package:angular2/angular2.dart';
1111
<button (click)="resend()">Resend</button>
1212
''')
1313
class HeroAsyncMessageComponent {
14-
static const DELAY = const Duration(milliseconds: 500);
14+
static const _msgEventDelay = const Duration(milliseconds: 500);
1515

1616
Stream<String> message;
1717

@@ -20,7 +20,8 @@ class HeroAsyncMessageComponent {
2020
}
2121

2222
void resend() {
23-
message = new Stream.periodic(DELAY, (i) => _msgs[i]).take(_msgs.length);
23+
message =
24+
new Stream.periodic(_msgEventDelay, (i) => _msgs[i]).take(_msgs.length);
2425
}
2526

2627
List<String> _msgs = <String>[

0 commit comments

Comments
 (0)