From 5fdee6602a444a2e1ffe48968b34f2fe72f85968 Mon Sep 17 00:00:00 2001 From: Matthew Amato Date: Fri, 25 Jul 2014 20:43:02 -0400 Subject: [PATCH] Fix bad if statement. --- Source/Widgets/Timeline/Timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Widgets/Timeline/Timeline.js b/Source/Widgets/Timeline/Timeline.js index e4ba7866f761..24442ba10837 100644 --- a/Source/Widgets/Timeline/Timeline.js +++ b/Source/Widgets/Timeline/Timeline.js @@ -244,7 +244,7 @@ define([ if (!defined(stopTime)) { throw new DeveloperError('stopTime is required'); } - if (JulianDate.lessThan(startTime, stopTime)) { + if (JulianDate.lessThanOrEquals(stopTime, startTime)) { throw new DeveloperError('Start time must come before end time.'); } //>>includeEnd('debug');