1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-11 20:15:00 -05:00
kaiwa/clientapp/app/views/message.js

30 lines
693 B
JavaScript
Raw Normal View History

2013-08-20 13:45:06 -04:00
/*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;
}
});