Created
May 11, 2012 16:48
-
-
Save mlynch/2660902 to your computer and use it in GitHub Desktop.
Backbone - modify model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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