Skip to content

0.9.10 does not call 'error' callback in Model#save on validation error #2154

Closed
@Derbeth

Description

From my understanding of Model#save() documentation, when save() is started, either 'success' or 'error' callback should be called.

This is true in Backbone 0.9.9:
http://jsfiddle.net/derbeth/vs3Zb/4/

but not in Backbone 0.9.10:
http://jsfiddle.net/derbeth/tGASS/3/

I know you have changed when validation is fired, but the Model#save() documentation still says:

   The error callback will also be invoked if the model has a validate method, and validation fails.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions