Skip to content

Instantly share code, notes, and snippets.

@DanielVartanov
Created January 12, 2014 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielVartanov/8391122 to your computer and use it in GitHub Desktop.
Save DanielVartanov/8391122 to your computer and use it in GitHub Desktop.
chain: function() {
$.when(collection.fetch()).done(function() {
...
$.when(another_collection.fetch()).done(function() {
...
});
});
},
tree: function() {
$.when(collection.fetch()).done(function() {
$.when(subordinate_collection1.fetch()).done(function() {
...
});
$.when(subordinate_collection2.fetch()).done(function() {
...
});
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment