Collect references to Whisper.events
Fixup // FREEBIE
This commit is contained in:
parent
f7c7e2251d
commit
a2e0fa59c1
4 changed files with 23 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue