Skip to content

Instantly share code, notes, and snippets.

@makuchaku
Created April 5, 2012 08:37
Show Gist options
  • Save makuchaku/2309212 to your computer and use it in GitHub Desktop.
Save makuchaku/2309212 to your computer and use it in GitHub Desktop.
saveSurvey : function(survey, successCb, errorCb) {
errorCb = errorCb || function(){};
// save the user
this.save(
{survey : survey},
{
success : function() {successCb();},
error : function() {errorCb();}
}
); // save
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment