mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Update viewer.js
This commit is contained in:
parent
81664251cc
commit
0d8d770327
@ -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++ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user