xdissent/waterline — pull request #1 by xdissent (2013-08-06 01:23:28+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`.