[Javascript] addEventListener and this keyword
Recently I was writing some script when I bumped into a problem with this in javascript. I wanted execute function once the user select the file to be processed.
1 |
document.getElementById('files').addEventListener('change', Controller.OnNewFilesAdded, false); |