From 57c06a9a199ae85b5dd3a8275bc133339297ce08 Mon Sep 17 00:00:00 2001 From: Grant Echols Date: Mon, 22 Jun 2015 13:35:45 -0600 Subject: [PATCH] Fixed problem with build complaining about variable name reuse. --- src/viewer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index 26ac3aa2..efe1ea36 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2824,8 +2824,9 @@ function updateOnce( viewer ) { return; } + var containerSize; if ( viewer.autoResize ) { - var containerSize = _getSafeElemSize( viewer.container ); + containerSize = _getSafeElemSize( viewer.container ); if ( !containerSize.equals( THIS[ viewer.hash ].prevContainerSize ) ) { // maintain image position var oldBounds = viewer.viewport.getBounds(); @@ -2836,7 +2837,7 @@ function updateOnce( viewer ) { } } else { - var containerSize = _getSafeElemSize( viewer.container ); + containerSize = _getSafeElemSize( viewer.container ); if ( !containerSize.equals( THIS[ viewer.hash ].prevContainerSize ) ) { var prevContainerSize = THIS[ viewer.hash ].prevContainerSize; var bounds = viewer.viewport.getBounds(true);