Dragooon/MultiAttach — pull request #1 by Nawe (2012-06-19 06:45:10+00:00)
Title: All of my changes, carefully wrapped, with all of their bugs too :)

- spacinazi. (Plenty of unneeded spaces, tabs etc. removed)

plugin.php:

- A "?>" added at the end (why do I see these removed so often...?)
- $total_size instead of $totalsize at one point
- check whether the session variable is set -- otherwise it generates errors when going to the post page.

attachui.js:

- added 'undefined' var to the main function, to avoid doing typeof's. This usually compresses better.
- multiple set to true instead of multiple (same, just simpler)
- change() tests whether this.files is set before processing it -- in case there's an error... Which happened to me.
- new Date().getTime() all changed to +new Date()
- $.event.props.push('dataTransfer') called to allow dataTransfer to be copied to the jQuery event objects -- alternatively, and what I'd recommend doing, using e.originalEvent.dataTransfer, probably compresses better in the long run.
- most events converted to .bind()
- weUrl() instead of we_prepareScriptUrl()
- a couple of "fileName || name" remained to be done
- commented out a console.log (I suspect you can remove it entirely... I also added another console.log which is commented out, too.)
- chaining a jQ call (.element stuff) -- please note: .element is generating an error for me when reaching the .prepend() call.
- some var optimizations.