Don't validate presence of thread id

It's undefined until the first save();
This commit is contained in:
lilia 2014-10-16 14:11:50 -07:00
parent 7e9c0e2394
commit f14cd2eed1

View file

@ -15,7 +15,7 @@ var Whisper = Whisper || {};
},
validate: function(attributes, options) {
var required = ['id', 'type', 'timestamp', 'image', 'name'];
var required = ['type', 'timestamp', 'image', 'name'];
var missing = _.filter(required, function(attr) { return !attributes[attr]; });
if (missing.length) { return "Thread must have " + missing; }
},