Update viewer.js

Moved call to _updateSequenceButtons inside if ( initialTileSource )
This commit is contained in:
Sharpbarb 2013-10-10 12:57:02 -07:00
parent 4535f47e8d
commit 3078642927

View File

@ -352,11 +352,11 @@ $.Viewer = function( options ) {
if ( initialTileSource ) { if ( initialTileSource ) {
this.open( initialTileSource ); this.open( initialTileSource );
}
if ( this.tileSources.length > 1 ) { if ( this.tileSources.length > 1 ) {
this._updateSequenceButtons( this.initialPage ); this._updateSequenceButtons( this.initialPage );
} }
}
for ( i = 0; i < this.customControls.length; i++ ) { for ( i = 0; i < this.customControls.length; i++ ) {
this.addControl( this.addControl(