instanceof Event works fine now in GM
This commit is contained in:
parent
1640ab5109
commit
d1f3aa78b8
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user