processDZI: fix imageFormatSupported check

c41f6a464e8c7676abd92f0b1a7d3ea80b337d12 changed this from an
in-scope function to a namespaced one but left the invocation
unprefixed
This commit is contained in:
Chris Adams 2013-03-25 16:33:27 -04:00
parent 6c4643d447
commit 3b1b9cd2f1

View File

@ -1850,10 +1850,8 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
rectNode,
i;
if ( !imageFormatSupported( fileFormat ) ) {
throw new Error(
$.getString( "Errors.ImageFormat", fileFormat.toUpperCase() )
);
if (!$.imageFormatSupported(fileFormat)) {
throw new Error($.getString("Errors.ImageFormat", fileFormat.toUpperCase()));
}
for ( i = 0; i < dispRectNodes.length; i++ ) {