1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-12 04:25:05 -05:00
kaiwa/clientapp/app/views/message.js
2013-08-20 10:45:06 -07:00

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;
}
});