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

Unified Diff: samples/calculator/tape.dart

Issue 12218131: Combine window.setTimeout/setInterval with Timer and Timer.repeating. Also (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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: samples/calculator/tape.dart
diff --git a/samples/calculator/tape.dart b/samples/calculator/tape.dart
index fb9d5e53c183dddb58072df26deb2b2838c789d5..55f94f318b6a19be72caeb5de93956884676c723 100644
--- a/samples/calculator/tape.dart
+++ b/samples/calculator/tape.dart
@@ -189,7 +189,7 @@ class Tape {
}
void scrollToTapeBottom() {
- window.setImmediate(() {
+ window.immediate.then((_) {
// theTape.rect.scroll.top = rect.scroll.height;
// TODO(terry): Would like to set scrollTop of tape doesn't seem to work
// so I scroll by max lines.

Powered by Google App Engine
This is Rietveld 408576698