Permalink
Browse files

fix for file drop

  • Loading branch information...
1 parent 36b6b26 commit 79cd5286f71293ede678b8d48eaed794b1e37dfc @Aqua-Ye committed Mar 3, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 plugins/file/file.js
View
@@ -44,9 +44,10 @@ function file_to_content(file, cb) {
##args(sel, cb)
{
$(sel).on("change", function(e) {
- for (var f in e.target.files) {
- var file = e.target.files[f];
- file_to_content(file, cb);
- }
+ $(e.target.files).each(
+ function(key, file) {
+ file_to_content(file, cb);
+ }
+ );
});
}

0 comments on commit 79cd528

Please sign in to comment.