mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-12 04:25:05 -05:00
30 lines
693 B
JavaScript
30 lines
693 B
JavaScript
/*global $*/
|
|
var StrictView = require('strictview');
|
|
var templates = require('templates');
|
|
var _ = require('underscore');
|
|
|
|
|
|
module.exports = StrictView.extend({
|
|
template: templates.includes.message,
|
|
classBindings: {
|
|
mine: '.message',
|
|
receiptReceived: '',
|
|
acked: '',
|
|
delayed: '',
|
|
edited: ''
|
|
},
|
|
contentBindings: {
|
|
body: '.body',
|
|
formattedTime: '.timestamp'
|
|
},
|
|
initialize: function (opts) {
|
|
this.containerEl = opts.containerEl;
|
|
this.render();
|
|
},
|
|
render: function () {
|
|
this.subViewRender({context: {message: this.model}});
|
|
this.handleBindings();
|
|
return this;
|
|
}
|
|
});
|