pass loaded file to callback when importing

pull/1/head
ansuz 9 years ago
parent 5b79775810
commit ca45e3533d

@ -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);
});
};

Loading…
Cancel
Save