mrdoob/three.js — pull request #4873 by zz85 (2014-05-31 05:36:02+00:00)
Title: Code Style Improvements 2

Code transforming mrdoob style second attempt See #4806, #4802

:haircut:

cc @WestLangley @mrdoob

[Scriptfu](https://gist.github.com/zz85/e929503387cdc597b4f7) used.

```sh
git config git config --global core.autocrlf true
git reset --hard # clean state
cd src/
# run code painter
codepainter xform -j ../utils/codestyle/mrdoob_codepainter.json "*/*.js"
# execute some custom regex
find ./ -type f -exec sed -i -e 's/( )/()/g;s/\[ \]/[]/g;s#{[ ]}#\{\}#g' {} \;
# remove backup files by sed. To undo, use find . -name "*-e" -exec sh -c 'mv -f $0 ${0%-e}' {} \;
find . -name "*.js-e*" -print0 | xargs -0 rm
jscs src -c mrdoob.json -r spaces # execute custom jscs for spaces before and after ++, --, !
git add -p # inspect changes
```