Update viewer.js

This commit is contained in:
Sharpbarb 2013-10-08 21:45:26 -07:00
parent c6597806ba
commit 2f33e6c666

View File

@ -203,6 +203,7 @@ $.Viewer = function( options ) {
//Keeps the initial page within bounds //Keeps the initial page within bounds
if ( this.initialPage > this.tileSources.length - 1){ if ( this.initialPage > this.tileSources.length - 1){
this.initialPage = this.tileSources.length - 1 this.initialPage = this.tileSources.length - 1
}
initialTileSource = this.tileSources[ this.initialPage ]; initialTileSource = this.tileSources[ this.initialPage ];