Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
save_changes: function(anime) {
Notify.useBootstrap();
var onSuccess = function(anime) {
var msg = anime.get('title') + " was successfully saved.";
console.log(msg);
Notify.success(msg);
};
var onFailure = function(anime) {
var msg = "Something went wrong, " + anime.get('title') + " was not saved.";
console.log(msg);
Notify.warning(msg);
};
anime.save().then(onSuccess, onFailure);
},
add_episode: function() {