openseadragon.js: fix imageFormatSupported refs

This commit is contained in:
Chris Adams 2013-06-19 15:27:46 -04:00
parent 169244ed1a
commit 51bb8ca46e

View File

@ -1829,8 +1829,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* @deprecated * @deprecated
*/ */
function processDZI( imageNode, tilesUrl ) { function processDZI( imageNode, tilesUrl ) {
/* global imageFormatSupported:true */
var fileFormat = imageNode.getAttribute( "Format" ), var fileFormat = imageNode.getAttribute( "Format" ),
sizeNode = imageNode.getElementsByTagName( "Size" )[ 0 ], sizeNode = imageNode.getElementsByTagName( "Size" )[ 0 ],
dispRectNodes = imageNode.getElementsByTagName( "DisplayRect" ), dispRectNodes = imageNode.getElementsByTagName( "DisplayRect" ),
@ -1843,7 +1841,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
rectNode, rectNode,
i; i;
if ( !imageFormatSupported( fileFormat ) ) { if ( !$.imageFormatSupported( fileFormat ) ) {
throw new Error( throw new Error(
$.getString( "Errors.ImageFormat", fileFormat.toUpperCase() ) $.getString( "Errors.ImageFormat", fileFormat.toUpperCase() )
); );
@ -1882,8 +1880,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* @deprecated * @deprecated
*/ */
function processDZIJSON( imageData, tilesUrl ) { function processDZIJSON( imageData, tilesUrl ) {
/* global imageFormatSupported:true */
var fileFormat = imageData.Format, var fileFormat = imageData.Format,
sizeData = imageData.Size, sizeData = imageData.Size,
dispRectData = imageData.DisplayRect || [], dispRectData = imageData.DisplayRect || [],
@ -1895,7 +1891,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
rectData, rectData,
i; i;
if ( !imageFormatSupported( fileFormat ) ) { if ( !$.imageFormatSupported( fileFormat ) ) {
throw new Error( throw new Error(
$.getString( "Errors.ImageFormat", fileFormat.toUpperCase() ) $.getString( "Errors.ImageFormat", fileFormat.toUpperCase() )
); );