instanceof Event works fine now in GM

This commit is contained in:
Mayhem 2013-07-15 11:47:10 +02:00
parent 1640ab5109
commit d1f3aa78b8

View File

@ -389,7 +389,7 @@ QR =
openFileInput: -> openFileInput: ->
QR.nodes.fileInput.click() QR.nodes.fileInput.click()
fileInput: (files) -> fileInput: (files) ->
if @ instanceof Element #or files instanceof Event # file input if files instanceof Event # file input
files = [@files...] files = [@files...]
QR.nodes.fileInput.value = null # Don't hold the files from being modified on windows QR.nodes.fileInput.value = null # Don't hold the files from being modified on windows
{length} = files {length} = files