mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-19 11:02:58 +00:00
Bind vs proxy
This commit is contained in:
parent
c1b902a5bf
commit
6273e21b22
@ -53,7 +53,7 @@ export default class FileHandler {
|
|||||||
|
|
||||||
listen() {
|
listen() {
|
||||||
// browser API
|
// browser API
|
||||||
document.getElementById('fileInput').addEventListener('change', jQuery.proxy(this.encodeFile, this), false);
|
document.getElementById('fileInput').addEventListener('change', this.encodeFile.bind(this), false);
|
||||||
|
|
||||||
// darkwire
|
// darkwire
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user