documentcloud/backbone — pull request #2261 by caseywebdev (2013-02-11 17:54:29+00:00)
Title: Refactor `update` to reduce wasted lookups

By moving most of the `update` logic into `add`, we can reduce all of the duplicated work in the existence check loop.