From 9fb325977714cab552e71320e61ac2c52ce45857 Mon Sep 17 00:00:00 2001 From: Andrew Bagshaw Date: Mon, 4 Dec 2017 17:54:47 -0800 Subject: [PATCH] Fix focus area option bug change from toLowerCase(str) to str.toLowerCase() --- src/salieo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/salieo.js b/src/salieo.js index 88ba3a2..013a8c6 100644 --- a/src/salieo.js +++ b/src/salieo.js @@ -256,7 +256,7 @@ function salieo(userOptions) { for(var i = 0; i < focusSides.length; i++) { if(dataset["salieoFocus" + focusSides[i]]) { currentImage.cropOptions.focus = currentImage.cropOptions.focus || {}; - currentImage.cropOptions.focus[toLowerCase(focusSides[i])] = (parseInt(dataset["salieoFocus" + focusSides[i]]) / 100) + currentImage.cropOptions.focus[focusSides[i].toLowerCase()] = (parseInt(dataset["salieoFocus" + focusSides[i]]) / 100) * (i < 2 ? currentImage.elementRect.width : currentImage.elementRect.height); } }