1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-15 14:04:59 -05:00
kaiwa/clientapp/views/mucMessage.js

31 lines
672 B
JavaScript
Raw Normal View History

2013-09-24 16:24:35 -04:00
/*global $*/
"use strict";
var _ = require('underscore');
var HumanView = require('human-view');
var templates = require('../templates');
module.exports = HumanView.extend({
template: templates.includes.mucMessage,
initialize: function (opts) {
this.render();
},
classBindings: {
mine: '.message',
2013-12-16 17:28:13 -05:00
pending: '.message',
2013-09-24 16:24:35 -04:00
delayed: '.message',
2013-12-16 17:28:13 -05:00
edited: '.message',
meAction: '.message'
2013-09-24 16:24:35 -04:00
},
textBindings: {
body: '.body',
nick: '.nick',
formattedTime: '.timestamp'
},
render: function () {
this.renderAndBind({message: this.model});
return this;
}
});