1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-08-13 17:03:51 -04:00
kaiwa/clientapp/views/mucMessage.js
2013-09-24 13:24:35 -07:00

30 lines
640 B
JavaScript

/*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',
acked: '.message',
delayed: '.message',
edited: '.message'
},
textBindings: {
body: '.body',
nick: '.nick',
formattedTime: '.timestamp'
},
render: function () {
this.renderAndBind({message: this.model});
return this;
}
});