mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(edit) onDrop: files -> Util.slice(files)
This commit is contained in:
parent
0dd86b55cb
commit
97ea204bb2
1 changed files with 5 additions and 6 deletions
|
|
@ -455,12 +455,11 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
|
||||
files = event.dataTransfer.files;
|
||||
|
||||
if (files)
|
||||
files.forEach(function(file) {
|
||||
reader = new FileReader();
|
||||
DOM.Events.addLoad(reader, onLoad);
|
||||
reader.readAsBinaryString(file);
|
||||
});
|
||||
Util.slice(files).forEach(function(file) {
|
||||
reader = new FileReader();
|
||||
DOM.Events.addLoad(reader, onLoad);
|
||||
reader.readAsBinaryString(file);
|
||||
});
|
||||
}
|
||||
|
||||
this.showMessage = function(text) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue