Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- backbone.js collections - How to define a success callback for fetch (recursive though)
- var collection = new Backbone.Collection();
- var success = function(){
- if(condition){
- collection.fetch({success : success});
- }
- };
- collection.fetch({success : success});
Advertisement
Add Comment
Please, Sign In to add comment