Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset tracking before calling callback on model in save method #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kirach
Copy link

@kirach kirach commented Nov 21, 2014

Model tracking should be reset before calling old success callback during save method. For now, this example from documentation doesn't work:

model.save({}, {
    success: function() {
        console.log(model.unsavedAttributes());  // >> false
    }
});

because we call success and then reset tracking. This PR solve this problem.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant