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

Unified Diff: samples/swarm/swarm_ui_lib/view/ConveyorView.dart

Issue 11748016: Make ~/, round, ceil, floor, truncate return ints. Remove toInt. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Checked mode fixes. Created 7 years, 12 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/swarm/swarm_ui_lib/view/ConveyorView.dart
diff --git a/samples/swarm/swarm_ui_lib/view/ConveyorView.dart b/samples/swarm/swarm_ui_lib/view/ConveyorView.dart
index 696c1bd4d74c3ad3c843f3c33b93e31e9bbedcad..420209f901b998029bda1706c58a0b1d9660180f 100644
--- a/samples/swarm/swarm_ui_lib/view/ConveyorView.dart
+++ b/samples/swarm/swarm_ui_lib/view/ConveyorView.dart
@@ -67,7 +67,7 @@ class ConveyorView extends CompositeView {
if (animate) {
animationTimeoutId = window.setTimeout(
- () { _onAnimationEnd(); }, (durationSeconds * 1000).toInt());
+ () { _onAnimationEnd(); }, (durationSeconds * 1000).truncate());
}
// TODO(mattsh), we should set the visibility to hide everything but the
// selected view.

Powered by Google App Engine
This is Rietveld 408576698