mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-24 10:12:18 -05:00
31 lines
672 B
JavaScript
31 lines
672 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',
|
|
pending: '.message',
|
|
delayed: '.message',
|
|
edited: '.message',
|
|
meAction: '.message'
|
|
},
|
|
textBindings: {
|
|
body: '.body',
|
|
nick: '.nick',
|
|
formattedTime: '.timestamp'
|
|
},
|
|
render: function () {
|
|
this.renderAndBind({message: this.model});
|
|
return this;
|
|
}
|
|
});
|