Revision: 62892
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 21, 2013 22:52 by alexedy
Initial Code
initialize : function() { this.folders = new FolderCollection(); }, analize : function(event){ var selected = _.filter(this.folders, function(num) { return num.attributes.name == event; }); console.log(selected); }, .....
Initial URL
Initial Description
Find an object in a collection with underscore. Using the filter function from underscore.
Initial Title
Filter a collection in Backbone
Initial Tags
filter
Initial Language
JavaScript