3 ms·
Because the OP doesn't mention which version of Backbone he's using nor is there a date for his posting, it's hard to tell how up to date the advice is. This st
by danso 14y ago
Because the OP doesn't mention which version of Backbone he's using nor is there a date for his posting, it's hard to tell how up to date the advice is. This stood out to me (though I think it's relatively minor):
Listing 7: Get model from collection by client id
ImageGallery.getByCid(534);
The `getByCid` method has been removed since 0.9.10: https://github.com/documentcloud/backbone/compare/0.9.9...0.9.10 https://github.com/documentcloud/backbone/compare/0.9.9...0....
- wpgreenway 14y agoAlso worth noting that his explanation of Collection.get: "Collection.get() which accept single index of model as parameter like follows..." is incorrect and should be Collection.at.
- azamuddin 14y agoMy apologize I didn't state that I don't use the latest version of BB, will take care of the update on next article. thanks