Skip to content

Commit

Permalink
Fix focus area option bug
Browse files Browse the repository at this point in the history
change from toLowerCase(str) to str.toLowerCase()
  • Loading branch information
abagshaw committed Dec 5, 2017
1 parent 7bba842 commit 9fb3259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/salieo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9fb3259

Please sign in to comment.