-
Notifications
You must be signed in to change notification settings - Fork 83
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
model.clear() does not work when model is invalid #141
Comments
Just bumped into to this issue myself - doesn't make any sense ... |
We just noticed this too. It does seem a bit odd, but after some further investigation it's actually replicating existing Backbone behaviour:
You can get past this by passing the someNestedModel.clear({validate: false}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
model.clear()
does not work when model does not pass validation:https://github.com/afeld/backbone-nested/blob/master/backbone-nested.js#L118-L120
this.validate
is supposed to return undefined. What is the reason behind this check?The text was updated successfully, but these errors were encountered: