From 379557093870d2ef35505167b495de69033cb62d Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 24 May 2016 12:45:25 -0700 Subject: [PATCH] [Timeline] Rename shadowing variable --- .../timeline/src/controllers/TimelineZoomController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/features/timeline/src/controllers/TimelineZoomController.js b/platform/features/timeline/src/controllers/TimelineZoomController.js index 7bd64eb408..d94a05d291 100644 --- a/platform/features/timeline/src/controllers/TimelineZoomController.js +++ b/platform/features/timeline/src/controllers/TimelineZoomController.js @@ -63,9 +63,9 @@ define( } function initializeZoomFromTimespan(timespan) { - var duration = timespan.getDuration(); + var timelineDuration = timespan.getDuration(); zoomIndex = 0; - while (toMillis(bounds.width) < duration && + while (toMillis(bounds.width) < timelineDuration && zoomIndex < zoomLevels.length - 1) { zoomIndex += 1; }