bevry / query-engine

QueryEngine provides extensive Querying, Filtering, and Searching abilities for Backbone.js Collections as well as JavaScript arrays and objects
http://bevry.github.io/query-engine/
Other
328 stars 34 forks source link

Fix hasModel() cid lookup for Backbone > 0.9.9 #21

Closed nfm closed 11 years ago

nfm commented 11 years ago

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.