Closed topless closed 10 years ago
Or it could simple become
xhr.upload.addEventListener 'progress', (event) -> progress(parseInt(event.loaded / event.total * 100.0)) , false
Which will have the same outcome as now, only it would be properly indented so the linter doesn't complain.
It's the last param of the addEventListener which is the useCapture
.. more details can be found on StackOverlfow or here: EventTarget.addEventListener
So the false
is actually not needed there because is the default..
In first place indentation is not correct and second I am not really sure that ", false" is needed.