mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-21 09:13:14 +03:00
Fixed erroneous "undefined" asserts
This commit is contained in:
parent
d85d4d492d
commit
e98d47e3ce
@ -104,7 +104,7 @@ $.extend( $.World.prototype, $.EventSource.prototype, /** @lends OpenSeadragon.W
|
|||||||
* @returns {OpenSeadragon.TiledImage} The item at the specified index.
|
* @returns {OpenSeadragon.TiledImage} The item at the specified index.
|
||||||
*/
|
*/
|
||||||
getItemAt: function( index ) {
|
getItemAt: function( index ) {
|
||||||
$.console.assert(index !== 'undefined', "[World.getItemAt] index is required");
|
$.console.assert(index !== undefined, "[World.getItemAt] index is required");
|
||||||
return this._items[ index ];
|
return this._items[ index ];
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ $.extend( $.World.prototype, $.EventSource.prototype, /** @lends OpenSeadragon.W
|
|||||||
*/
|
*/
|
||||||
setItemIndex: function( item, index ) {
|
setItemIndex: function( item, index ) {
|
||||||
$.console.assert(item, "[World.setItemIndex] item is required");
|
$.console.assert(item, "[World.setItemIndex] item is required");
|
||||||
$.console.assert(index !== 'undefined', "[World.setItemIndex] index is required");
|
$.console.assert(index !== undefined, "[World.setItemIndex] index is required");
|
||||||
|
|
||||||
var oldIndex = this.getIndexOfItem( item );
|
var oldIndex = this.getIndexOfItem( item );
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
init: function() {
|
init: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
var testInitialOpen = false;
|
var testInitialOpen = true;
|
||||||
var testOverlays = false;
|
var testOverlays = false;
|
||||||
var testMargins = false;
|
var testMargins = false;
|
||||||
var testNavigator = true;
|
var testNavigator = true;
|
||||||
@ -21,7 +21,7 @@
|
|||||||
// referenceStripScroll: 'vertical',
|
// referenceStripScroll: 'vertical',
|
||||||
navPrevNextWrap: false,
|
navPrevNextWrap: false,
|
||||||
preserveViewport: false,
|
preserveViewport: false,
|
||||||
collectionMode: true,
|
// collectionMode: true,
|
||||||
// collectionRows: 3,
|
// collectionRows: 3,
|
||||||
// collectionLayout: 'vertical',
|
// collectionLayout: 'vertical',
|
||||||
// collectionTileSize: 10,
|
// collectionTileSize: 10,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user