Guest User

Untitled

a guest
May 8th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. backbone.js collections - How to define a success callback for fetch (recursive though)
  2. var collection = new Backbone.Collection();
  3. var success = function(){
  4. if(condition){
  5. collection.fetch({success : success});
  6. }
  7. };
  8. collection.fetch({success : success});
Advertisement
Add Comment
Please, Sign In to add comment