dropbox/dropbox-js — pull request #22 by hc2p (2012-11-01 18:25:23+00:00)
Title: onProgress callback

first i want to say thanks so much for this lib, saving me hours of time!

I wanted to make use of onProgress callback and couldn't figure out a better way.

You mention in your post "[If you want to implement progress bars for Dropbox operations, you can set up listeners for the relevant XmlHttpRequest events.](https://tech.dropbox.com/2012/08/some-love-for-javascript-applications-2/)". But binding onProgress on the xhr returned by writeFile() doesnt trigger while uploading. i guess the reason is that eventhandler should be added before xhr.open(). so i came up with this solution.

also added a little fix for yui compressor (how can i split commits into several pull requests?). preserved words are apparently not allowed...

cheers