Skip to content

Instantly share code, notes, and snippets.

@Rolilink
Created February 5, 2015 04:58
Show Gist options
  • Select an option

  • Save Rolilink/3251fee1a888ff960bb9 to your computer and use it in GitHub Desktop.

Select an option

Save Rolilink/3251fee1a888ff960bb9 to your computer and use it in GitHub Desktop.
var model1 = new Model();
var model2 = new Model();
model1.save(function(){
doSomething(model1); // get executed only when model1 is saved
}); // Kinda slow
model2.save(function(){
doSomething(model2); // get executed only when model2 is saved
}); // Kinda slow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment