gae-init / gae-init-upload

Fork of gae-init with Google Cloud Storage
http://upload.gae-init.appspot.com
MIT License
36 stars 15 forks source link

Updated upload #1

Closed topless closed 10 years ago

topless commented 10 years ago

In first place indentation is not correct and second I am not really sure that ", false" is needed.

topless commented 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.

lipis commented 10 years ago

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..