From acd55c709d9025141e3d954eb663710edcc680ff Mon Sep 17 00:00:00 2001 From: radix-pro Date: Tue, 2 Jul 2013 00:27:53 -0700 Subject: [PATCH] Update iiiftilesource.js --- src/iiiftilesource.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/iiiftilesource.js b/src/iiiftilesource.js index 98cfa166..4c36914e 100644 --- a/src/iiiftilesource.js +++ b/src/iiiftilesource.js @@ -74,11 +74,8 @@ $.IIIFTileSource = function( options ){ if (!isNaN(cf) && cf > mf) { mf = cf; } } } - if ( mf < 0 ) { - options.maxLevel = Number(Math.ceil(Math.log(Math.max(this.width, this.height ), 2))); - } else { - options.maxLevel = mf; - } + if ( mf < 0 ) { options.maxLevel = Number(Math.ceil(Math.log(Math.max(this.width, this.height ), 2))); } + else { options.maxLevel = mf; } } $.TileSource.apply( this, [ options ] );