Removed unnecessary anonymous function

pull/1/head
Denton Liu 9 years ago
parent 2c58765583
commit 1bd0dbb10e
  1. 4
      src/app.js

@ -163,9 +163,7 @@ var run = function () {
for (var i = 0; i < fileList.length; i++) {
var name = fileList[i].name;
if (!storage.exists(utils.fileKey(name)) || confirm('The file ' + name + ' already exists! Would you like to overwrite it?')) {
editor.uploadFile(fileList[i], function () {
updateFiles();
});
editor.uploadFile(fileList[i], updateFiles);
}
}

Loading…
Cancel
Save