Delete trailing spaces.
Added checking trailing spaces to jshint.
Fix problem with DOM sprite animation in webkit browsers

The backgroundPosition CSS attribute isn't always getting set correctly in Safari.  This seems to be some sort of hard to trigger webkit-only bug that occurs when we do sprite animation, but not when setting regular sprite positions.

I was unable to produce a simple test case without using Crafty, so I'm not sure what the exact problem is.  This "fixes" things by setting the background position separately from the rest of the background properties.
Merge pull request #664 from starwed/safari-dom-sprite

Fix problem with DOM sprite animation in webkit browsers
Remove stray occurrences of toX in code and docs

Both the docs and the code still referenced toX -- the former causes confusion, the latter an accidental global variable!
Merge branch 'clean_spaces' of https://github.com/pawurb/Crafty into pawurb-clean_spaces

Conflicts:
	tests/core.html
	tests/stage.html
Merge pull request #673 from starwed/pawurb-clean_spaces

Delete trailing spaces.
Adjust bounding region to include hitbox when it exists outside of the entity

Introduce a new bounding rectangle `._cbr` (collision bounding rectangle) that is guaranteed to include both the entity and it's hitbox.
When the hitbox sits inside the entity, the CBR will not be used.

Also, simplify the way `_calculateMBR` is called.  A follow up patch could optimize that function for the case where no rotation exists.

This patch also adds tests and a small note to the docs that external hitboxes might have a small performance penalty.
Merge pull request #672 from starwed/anim-doc-fix

Remove stray occurrences of toX in code and docs
Edit docs for formatting

There are some formatting issues on several doc pages.  This patch is for cleaning up formatting and (a few) grammar issues.

The various math pages have some pretty big problems, so that's not handled here.
Merge pull request #671 from starwed/cbr

Adjust bounding region to include hitbox when it exists outside of the entity
Merge pull request #674 from starwed/doc-cleanup

Edit docs for formatting