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,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,