The _byCid object and getByCid() have been removed as on Backbone 0.9.9. get() now supports lookup by both id and cid.
Conditionally use _byCid implementation for backwards compatibility.
Fix hasModel() cid lookup for Backbone > 0.9.9
The `_byCid` object and `getByCid()` have been removed. `get()` now supports lookup by both id and cid. Keep `_byCid` implementation for backwards compatibility.
Sweet. I'll clean it to (@_byCid?[model.cid] or @get(model.cid)) which produces the same result.
(@_byCid?[model.cid] or @get(model.cid))
Cleaned pull request #21
v1.5.1. Bugfix. Improvement.
- v1.5.1 January 24, 2013
- Support for Backbone v0.9.10
- Closes [pull request
#21](#21) thanks to [Nicholas
- Added backbone as a peerDependency