Fixed erroneous "undefined" asserts

This commit is contained in:
Ian Gilman 2014-12-18 15:21:48 -08:00
parent d85d4d492d
commit e98d47e3ce
2 changed files with 4 additions and 4 deletions

View File

@ -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 );

View File

@ -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,