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

Unified Diff: samples/clock/web/clock.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. 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/clock/web/clock.dart
diff --git a/samples/clock/web/clock.dart b/samples/clock/web/clock.dart
index 0069f0a64a099dd10f4f87ba13d906ad1a96d1ec..4c1c9103cbf836926d9948cfdc0d53d746abe33f 100644
--- a/samples/clock/web/clock.dart
+++ b/samples/clock/web/clock.dart
@@ -34,9 +34,9 @@ class CountDownClock {
static const double BALL_WIDTH = 19.0;
static const double BALL_HEIGHT = 19.0;
- List<ClockNumber> hours = new List<ClockNumber>.fixedLength(2);
- List<ClockNumber> minutes = new List<ClockNumber>.fixedLength(2);
- List<ClockNumber> seconds = new List<ClockNumber>.fixedLength(2);
+ List<ClockNumber> hours = new List<ClockNumber>(2);
+ List<ClockNumber> minutes = new List<ClockNumber>(2);
+ List<ClockNumber> seconds = new List<ClockNumber>(2);
int displayedHour = -1;
int displayedMinute = -1;
int displayedSecond = -1;

Powered by Google App Engine
This is Rietveld 408576698