Skip to content

Commit

Permalink
Merge pull request #60 from jeudy100/PCM-7419
Browse files Browse the repository at this point in the history
PCM-7419: replace lamba function with regular function
  • Loading branch information
gandhikeyur authored Oct 1, 2018
2 parents 783d58b + fb32623 commit e82db86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion strata.js
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,11 @@
xhr.upload.addEventListener("progress", function(evt) {
if (evt.lengthComputable) {
var percentComplete = evt.loaded * 100 / evt.total;
onProgress(percentComplete, () => xhr.abort());
var abort = function () {
xhr.abort();
};

onProgress(percentComplete, abort);
}
}, false);
}
Expand Down

0 comments on commit e82db86

Please sign in to comment.