Corrected documentation and isFullScreen function

This commit is contained in:
Jachimike Onuoha 2021-12-02 16:55:07 -05:00
parent 664b707e5f
commit f84d241367
2 changed files with 4 additions and 5 deletions

View File

@ -444,11 +444,10 @@ $.extend( $.IIIFTileSource.prototype, $.TileSource.prototype, /** @lends OpenSea
/** /**
* Determine whether arbitrary tile requests can be made against a service with the given profile * Determine whether arbitrary tile requests can be made against a service with the given profile
* @function * @function
* @param {array} options - IIIF profile array * @param {Object} options - IIIF option
* @param {Array|String} options.profile * @param {String} options.profile
* @param {Number} options.version * @param {Number} options.version
* @param {Number} options.extraFeatures * @param {Number} options.extraFeatures
* @throws {Error}
* @returns {Boolean} * @returns {Boolean}
*/ */
function canBeTiled ( options ) { function canBeTiled ( options ) {

View File

@ -1255,10 +1255,10 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
// //
/** /**
* @function * @function
* @return {Boolean} returns true if the viewer is in fullscreen * @returns {Boolean} returns true if the viewer is in fullscreen
*/ */
isFullScreen: function () { isFullScreen: function () {
return $.setFullScreen.fullScreen; return $.isFullScreen() && this.isFullPage();
}, },
/** /**