Skip to content

Commit

Permalink
Fix unwanted crop_options modification
Browse files Browse the repository at this point in the history
  • Loading branch information
abagshaw committed Dec 1, 2017
1 parent 6f8ca13 commit 8804de4
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 @@ -295,7 +295,7 @@ function salieo(userOptions) {
var tmpElementRect;
for(var i = 0; i < loadedImages.length; i++) {
loadedImages[i].elementRect = loadedImages[i].element.getBoundingClientRect();
loadedImages[i].cropOptions = options.crop_options;
loadedImages[i].cropOptions = Object.create(options.crop_options);

addAvoidArea(loadedImages[i], avoidAreas);
addAttributes(loadedImages[i]);
Expand Down

0 comments on commit 8804de4

Please sign in to comment.