noeticpenguin/ngForce — pull request #9 by mshanemc (2014-01-16 21:35:55+00:00)
Title: strip off 'attribuates' before update/insert/etc

Use case: vfr.query an object, do some manipulation, then you want to put it with vfr.update.

If you put back what you pulled down, it's trying to write the 'attributes' part of the object, which of course doesn't exist in SF.

This removes it. The apex map method 'remove' won't get upset if it doesn't exist, so this is safe.

I had the choice between doing this here in the class, but it could also be done with delete in the js component. The only benefit there is that it would save a little bit of payload.