From 0d8d770327824f173c6955d1acb53aec89dd70e8 Mon Sep 17 00:00:00 2001 From: Sharpbarb Date: Wed, 9 Oct 2013 15:27:43 -0700 Subject: [PATCH] Update viewer.js --- src/viewer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index 88e2dec7..9d6e19be 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -11,7 +11,7 @@ * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * - * - Redistributions in binary form must reproduce the above copyright + * - Redistributions in binary form must reproduce the above copyrightthis * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * @@ -201,8 +201,8 @@ $.Viewer = function( options ) { THIS[ this.hash ].sequenced = true; } //Keeps the initial page within bounds - if ( this.initialPage > this.tileSources.length - 1){ - this.initialPage = this.tileSources.length - 1 + if ( this.initialPage > this.tileSources.length - 1 ){ + this.initialPage = this.tileSources.length - 1; } initialTileSource = this.tileSources[ this.initialPage ]; @@ -353,8 +353,8 @@ $.Viewer = function( options ) { this.open( initialTileSource ); - if (_this.tileSources.length > 1){ - _this.sequenceButtons(_this.initialPage); + if (this.tileSources.length > 1){ + this.sequenceButtons(this.initialPage); } for ( i = 0; i < this.customControls.length; i++ ) {