mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-29 12:42:16 -05:00
30 lines
621 B
JavaScript
30 lines
621 B
JavaScript
/*global $*/
|
|
"use strict";
|
|
|
|
var _ = require('underscore');
|
|
var StrictView = require('strictview');
|
|
var templates = require('../templates');
|
|
|
|
|
|
module.exports = StrictView.extend({
|
|
template: templates.includes.message,
|
|
initialize: function (opts) {
|
|
this.render();
|
|
},
|
|
classBindings: {
|
|
mine: '.message',
|
|
receiptReceived: '',
|
|
acked: '',
|
|
delayed: '',
|
|
edited: ''
|
|
},
|
|
textBindings: {
|
|
body: '.body',
|
|
formattedTime: '.timestamp'
|
|
},
|
|
render: function () {
|
|
this.renderAndBind({message: this.model});
|
|
return this;
|
|
}
|
|
});
|