From 30786429278ae1fc66b08c2142e80e2f55e22798 Mon Sep 17 00:00:00 2001 From: Sharpbarb Date: Thu, 10 Oct 2013 12:57:02 -0700 Subject: [PATCH] Update viewer.js Moved call to _updateSequenceButtons inside if ( initialTileSource ) --- src/viewer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index a1100bb1..7c3fd2d7 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -352,12 +352,12 @@ $.Viewer = function( options ) { if ( initialTileSource ) { this.open( initialTileSource ); + + if ( this.tileSources.length > 1 ) { + this._updateSequenceButtons( this.initialPage ); + } } - - if ( this.tileSources.length > 1 ) { - this._updateSequenceButtons( this.initialPage ); - } - + for ( i = 0; i < this.customControls.length; i++ ) { this.addControl( this.customControls[ i ].id,