blueimp/jQuery-File-Upload — pull request #942 by karellm (2012-01-15 23:41:51+00:00)
Title: Add optional AMD support

I edited the files to bring AMD support to the module. If you don't know about AMD, jquery >1.7 is using it and it is growing really fast. There is a lot of lecture on the web about it.

Regarding the edits I made to your code, it consists in wrapping the files into a define() method if the app use AMD and fall back to globals otherwise. You can read about it here: https://github.com/umdjs/umd

I didn't touch anything else in your code and I did a quick test with an app using AMD and one not and everything seems to work just fine.