Skip to content

Commit 4985f0f

Browse files
committed
Merge pull request #216 from benjamincarp/master
fix order of operations bug with duplicate files in one drag/drop
2 parents 15d20a0 + 7d5c090 commit 4985f0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resumable.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,10 @@
369369
if (!$.getFromUniqueIdentifier(uniqueIdentifier)) {(function(){
370370
file.uniqueIdentifier = uniqueIdentifier;
371371
var f = new ResumableFile($, file, uniqueIdentifier);
372+
$.files.push(f);
373+
files.push(f);
374+
f.container = (typeof event != 'undefined' ? event.srcElement : null);
372375
window.setTimeout(function(){
373-
$.files.push(f);
374-
files.push(f);
375-
f.container = (typeof event != 'undefined' ? event.srcElement : null);
376376
$.fire('fileAdded', f, event)
377377
},0);
378378
})()};

0 commit comments

Comments
 (0)