basic functionality with drag and drop

This commit is contained in:
jywarren
2017-01-02 19:14:37 -05:00
parent f45608250c
commit 6fcd18a03f
7 changed files with 55 additions and 80 deletions

View File

@@ -32,7 +32,7 @@ module.exports = function ImageSelect(options) {
for (var i = 0, f; f = files[i]; i++) {
// Read the File objects in this FileList.
reader = new FileReader()
reader = new FileReader();
reader.onload = function(e) {
// we should trigger "load" event here
@@ -45,7 +45,7 @@ module.exports = function ImageSelect(options) {
options.output(image);
}
reader.readAsDataURL(f);
}
}