Skip to content

Instantly share code, notes, and snippets.

@mlynch
Created May 11, 2012 16:48
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 mlynch/2660902 to your computer and use it in GitHub Desktop.
Save mlynch/2660902 to your computer and use it in GitHub Desktop.
Backbone - modify model
var app = new UserApp();
app.id = id;
app.save({'name': name}, {
success: function() {
console.log('Changed name of app');
},
error: function() {
console.log('Unable to change name of app');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment