Permalink
Browse files

Pass file when triggering upload:percentComplete

  • Loading branch information...
1 parent 96cd41b commit 8bfe120652a55b67834b506c041ad5da82dcd1b3 @joshuaclayton joshuaclayton committed Aug 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/assets/javascripts/jack_up/file_uploader.coffee
@@ -15,7 +15,7 @@ class @JackUp.FileUploader
(progress) =>
if progress.lengthComputable
percent = progress.loaded/progress.total*100
- @trigger 'upload:percentComplete', percentComplete: percent, progress: progress
+ @trigger 'upload:percentComplete', percentComplete: percent, progress: progress, file: file
if percent == 100
@trigger 'upload:sentToServer', file: file

0 comments on commit 8bfe120

Please sign in to comment.