Skip to content

Commit

Permalink
Merge pull request #2 from dgrebenyuk/master
Browse files Browse the repository at this point in the history
fix for ReferenceError: event is not defined
  • Loading branch information
Lepozepo committed Dec 16, 2013
2 parents 44c83a9 + 15cb7d8 commit f975d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3client.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Handlebars.registerHelper('S3', function (options) {

html = Spark.attachEvents({
'change input[type=file]': function (e) {
var files = event.currentTarget.files;
var files = e.currentTarget.files;
_.each(files,function(file){
var reader = new FileReader;
var fileData = {
Expand Down

0 comments on commit f975d56

Please sign in to comment.