mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-26 07:06: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,
|
* - Redistributions of source code must retain the above copyright notice,
|
||||||
* this list of conditions and the following disclaimer.
|
* 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
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
* documentation and/or other materials provided with the distribution.
|
* documentation and/or other materials provided with the distribution.
|
||||||
*
|
*
|
||||||
@ -202,7 +202,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 ];
|
||||||
@ -353,8 +353,8 @@ $.Viewer = function( options ) {
|
|||||||
|
|
||||||
this.open( initialTileSource );
|
this.open( initialTileSource );
|
||||||
|
|
||||||
if (_this.tileSources.length > 1){
|
if (this.tileSources.length > 1){
|
||||||
_this.sequenceButtons(_this.initialPage);
|
this.sequenceButtons(this.initialPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( i = 0; i < this.customControls.length; i++ ) {
|
for ( i = 0; i < this.customControls.length; i++ ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user