diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-06-21 17:50:34 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-06-21 17:50:34 +0300 |
commit | f5cbb44d0bd466b32d16bf8a15b0996eaa42e0e4 (patch) | |
tree | 719feceae3065730e97a7e89860ae59411dc8264 /app/assets/javascripts/profile | |
parent | 94ac31e28b5de11b86a60e8dd56c472c777234a4 (diff) |
Follow-up to !19808: Split up for-loop initializations
Diffstat (limited to 'app/assets/javascripts/profile')
-rw-r--r-- | app/assets/javascripts/profile/gl_crop.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/assets/javascripts/profile/gl_crop.js b/app/assets/javascripts/profile/gl_crop.js index 40ec3208b58..c6d809d84a6 100644 --- a/app/assets/javascripts/profile/gl_crop.js +++ b/app/assets/javascripts/profile/gl_crop.js @@ -140,10 +140,9 @@ import _ from 'underscore'; binary = atob(dataURL.split(',')[1]); array = []; - // eslint-disable-next-line no-multi-assign - for (k = i = 0, len = binary.length; i < len; k = (i += 1)) { - v = binary[k]; - array.push(binary.charCodeAt(k)); + for (i = 0, len = binary.length; i < len; i += 1) { + v = binary[i]; + array.push(binary.charCodeAt(i)); } return new Blob([new Uint8Array(array)], { type: 'image/png' |