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,