From 0d09183159d972f9b6784009095cb41f9e718c53 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Wed, 19 Jun 2013 14:14:09 -0400 Subject: [PATCH] referencestrip.js: move variable declaration to the top of loadPanels --- src/referencestrip.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/referencestrip.js b/src/referencestrip.js index ae20fdba..45c4c630 100644 --- a/src/referencestrip.js +++ b/src/referencestrip.js @@ -387,7 +387,8 @@ function loadPanels(strip, viewerSize, scroll){ activePanelsEnd, miniViewer, style, - i; + i, + element; if( 'horizontal' == strip.scroll ){ panelSize = strip.panelWidth; }else{ @@ -399,7 +400,7 @@ function loadPanels(strip, viewerSize, scroll){ activePanelsStart = activePanelsStart < 0 ? 0 : activePanelsStart; for( i = activePanelsStart; i < activePanelsEnd && i < strip.panels.length; i++ ){ - var element = strip.panels[ i ]; + element = strip.panels[ i ]; if ( !element.activePanel ){ miniViewer = new $.Viewer( { id: element.id,