mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Get rid of Layout global
Instead, trigger and listen for events on the conversation collection object.
This commit is contained in:
@@ -20,14 +20,14 @@ var Whisper = Whisper || {};
|
||||
},
|
||||
|
||||
open: function(e) {
|
||||
$('.conversation').trigger('close'); // detach any existing conversation views
|
||||
this.$el.addClass('selected');
|
||||
|
||||
if (!this.view) {
|
||||
this.view = new Whisper.ConversationView({ model: this.model });
|
||||
} else {
|
||||
this.view.delegateEvents();
|
||||
}
|
||||
this.view.render();
|
||||
this.$el.addClass('selected');
|
||||
this.model.collection.trigger('selected', this.view);
|
||||
},
|
||||
|
||||
render: function() {
|
||||
|
||||
Reference in New Issue
Block a user