documentcloud/backbone — pull request #1901 by wyuenho (2012-12-11 19:07:51+00:00)
Title: Add clone() now clones with constructor options

Cloning a collection now doesn't clone the `model` and `comparator` attributes now. I think it's reasonable for users calling `clone()` to expect the returned new collection has the same attributes as the one it was cloned from.

Cloning a model now also clones the reference to the `collection` for the same reason.

If for some reason `comparator` and `collection` shouldn't be cloned, `model` should be cloned regardless I think. It would be surprising that the newly created collection can't vivify models if you add a bunch of object hashes.