balderdashy/waterline — pull request #92 by xdissent (2013-08-06 01:26:48+00:00)
Title: Clone defaults upon assignment

The `defaultsTo` values are currently being assigned to the model instances directly. For objects and arrays, the model instances end up sharing references to the same object. This becomes particularly heinous in `createEach`, for which I've added a test. I used underscore's `clone` because I couldn't find anything in `utils`.