You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys,
I've been breaking my head for a while, why invalid models are persisted to server, and today looked at github version of backbone.js. What I've noticed is that in the site (http://backbonejs.org/backbone.js) version the following lines in save method:
// Do not persist invalid models.
if (!attrs && !this.isValid()) return false;
are missing!!!
It doesn't seem OK to me, isn't it?
The text was updated successfully, but these errors were encountered:
Hi guys,
I've been breaking my head for a while, why invalid models are persisted to server, and today looked at github version of backbone.js. What I've noticed is that in the site (http://backbonejs.org/backbone.js) version the following lines in save method:
are missing!!!
It doesn't seem OK to me, isn't it?
The text was updated successfully, but these errors were encountered: