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

Unified Diff: runtime/bin/timer_impl.dart

Issue 8992007: Make the repeating argument to timers optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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: runtime/bin/timer_impl.dart
diff --git a/runtime/bin/timer_impl.dart b/runtime/bin/timer_impl.dart
index 78baa8c3fbe812d1944ba4070ce844cae6150ea4..9f3d1072d864f65f8678a6fe1d8ea72b7afffa28 100644
--- a/runtime/bin/timer_impl.dart
+++ b/runtime/bin/timer_impl.dart
@@ -16,7 +16,7 @@ class _Timer implements Timer {
factory _Timer(void callback(Timer timer),
int milliSeconds,
- bool repeating) {
+ [bool repeating = false]) {
EventHandler._start();
if (_timers === null) {
_timers = new DoubleLinkedQueue<_Timer>();

Powered by Google App Engine
This is Rietveld 408576698