Move Whisper.events out of views and tests
This commit is contained in:
parent
a1c7369347
commit
40af226a4a
6 changed files with 13 additions and 6 deletions
|
@ -19,8 +19,6 @@
|
|||
|
||||
window.addEventListener('online', this.update.bind(this));
|
||||
window.addEventListener('offline', this.update.bind(this));
|
||||
Whisper.events.on('unauthorized', this.update, this);
|
||||
Whisper.events.on('reconnectTimer', this.onReconnectTimer, this);
|
||||
|
||||
this.model = new Backbone.Model();
|
||||
this.listenTo(this.model, 'change', this.onChange);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue