pass loaded file to callback when importing

pull/1/head
ansuz 2016-06-23 16:38:24 +02:00
parent 5b79775810
commit ca45e3533d
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ define([
$files.on('change', function (e) {
var file = e.target.files[0];
var reader = new FileReader();
reader.onload = function (e) { f(e.target.result); };
reader.onload = function (e) { f(e.target.result, file); };
reader.readAsText(file, type);
});
};