From 293f938754c5eb68737aed0eedafb9153ebda8bc Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Sun, 15 Jun 2014 16:19:57 +0200 Subject: [PATCH] Cleanups. --- static/js/services/contacts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/services/contacts.js b/static/js/services/contacts.js index b9a49e6c..4f900221 100644 --- a/static/js/services/contacts.js +++ b/static/js/services/contacts.js @@ -130,9 +130,10 @@ define(['underscore', 'jquery', 'modernizr', 'sjcl'], function(underscore, $, Mo this.database = null; appData.e.on("authenticationChanged", _.bind(function(event, userid, suserid) { + // TODO(longsleep): Avoid creating empty databases. Create db on store only. var database = this.open(userid, suserid); if (database && userid) { - // TODO(longsleep): This needs to be delayed util self has ha userid. + // Load when database is ready and userid is available. if (database.ready) { _.defer(_.bind(function() { if (this.database === database) {