-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
Hi everyone,
I'm using Jahdrien's FileReader (many thanks!) but I think I have a problem with calling fileReader() multiple times in my JS file.
I'm using it in a Rails app, i'm using CoffeeScript for the JS part. I'm trying to preview images with IE9.
I have multiple input and I'm calling multiple times the function fileReader() but when I do so it seems to break stuff... Do someone had the same issue?
previewImage = (event) ->
* do stuff *
$input = $("#my_input")
$input.fileReader()
$input.change (event) ->
previewImage(event)It works fine.
But then I add :
anotherPreviewImage = (event) ->
* do stuff *
$anotherInput = $("#my_input2")
$anotherInput.fileReader()
$anotherInput.change (event) ->
anotherPreviewImage(event)And the whole thing doesn't work anymore on IE9...
Thanks for helping me!
Metadata
Metadata
Assignees
Labels
No labels