From f14cd2eed150bf9e1899c7dfd3962c34236e85cd Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 16 Oct 2014 14:11:50 -0700 Subject: [PATCH] Don't validate presence of thread id It's undefined until the first save(); --- js/models/threads.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/models/threads.js b/js/models/threads.js index 36667f4a5..1c4d5c60e 100644 --- a/js/models/threads.js +++ b/js/models/threads.js @@ -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; } },