mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 08:36:10 +03:00
referencestrip.js: move variable declaration to the top of loadPanels
This commit is contained in:
parent
eafc822aa8
commit
0d09183159
@ -387,7 +387,8 @@ function loadPanels(strip, viewerSize, scroll){
|
|||||||
activePanelsEnd,
|
activePanelsEnd,
|
||||||
miniViewer,
|
miniViewer,
|
||||||
style,
|
style,
|
||||||
i;
|
i,
|
||||||
|
element;
|
||||||
if( 'horizontal' == strip.scroll ){
|
if( 'horizontal' == strip.scroll ){
|
||||||
panelSize = strip.panelWidth;
|
panelSize = strip.panelWidth;
|
||||||
}else{
|
}else{
|
||||||
@ -399,7 +400,7 @@ function loadPanels(strip, viewerSize, scroll){
|
|||||||
activePanelsStart = activePanelsStart < 0 ? 0 : activePanelsStart;
|
activePanelsStart = activePanelsStart < 0 ? 0 : activePanelsStart;
|
||||||
|
|
||||||
for( i = activePanelsStart; i < activePanelsEnd && i < strip.panels.length; i++ ){
|
for( i = activePanelsStart; i < activePanelsEnd && i < strip.panels.length; i++ ){
|
||||||
var element = strip.panels[ i ];
|
element = strip.panels[ i ];
|
||||||
if ( !element.activePanel ){
|
if ( !element.activePanel ){
|
||||||
miniViewer = new $.Viewer( {
|
miniViewer = new $.Viewer( {
|
||||||
id: element.id,
|
id: element.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user