define(['underscore', 'backbone', 'views/app_content/messaging/list'], function (_, Backbone, MessageListView) { 'use strict'; return Backbone.View.extend({ className: 'preview-chat-content-tab', setModel: function (model) { this.$el.addClass('preview-message-content-tab'); this.trigger('change:section:content'); this.messageListView = new MessageListView({ model: model }); this.$el.html(this.messageListView.render().el); } }); });