marionettejs / guides

Learn how to build web apps using Marionette

Home Page:https://marionette.gitbooks.io/marionette-guides

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Name of event after model save

iampeterbanjo opened this issue · comments

In https://marionette.gitbooks.io/marionette-guides/content/en/views/index.html there is a description of a post-save model event called afterSave that is triggered in the success callback for the save event. But the code displayed appears to have an error.

Should this line in the save success callback model.trigger('save', model, {}); be model.trigger('afterSave', model, {});?