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