documentcloud/backbone — pull request #1050 by bobtfish (2012-02-25 23:50:51+00:00)
Title: Fix for custom sync functions

I have noticed that if you have one collection with a custom sync function, then models created in that collection don't get that sync function, and therefore will try to persist themselves using the default method.

I've adjusted the _prepareModel function so that if coll.sync is set, it's also set on created models, and added test cases demonstrating it works.