Collect references to Whisper.events

Fixup

// FREEBIE
This commit is contained in:
lilia 2017-04-24 17:59:11 -07:00 committed by Scott Nonnenberg
parent f7c7e2251d
commit a2e0fa59c1
No known key found for this signature in database
GPG key ID: A4931C09644C654B
4 changed files with 23 additions and 13 deletions

View file

@ -32,8 +32,8 @@
var verificationCode = $('#code').val().replace(/\D+/g, "");
this.accountManager.registerSingleDevice(number, verificationCode).then(function() {
Whisper.events.trigger('openInbox');
}).catch(this.log.bind(this));
this.$el.trigger('openInbox');
}.bind(this)).catch(this.log.bind(this));
},
log: function (s) {
console.log(s);