mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-12 12:35:00 -05:00
26 lines
601 B
JavaScript
26 lines
601 B
JavaScript
/*global $*/
|
|
var StrictView = require('strictview');
|
|
var templates = require('templates');
|
|
var _ = require('underscore');
|
|
|
|
|
|
module.exports = StrictView.extend({
|
|
template: templates.includes.contactListItemResource,
|
|
classBindings: {
|
|
show: ''
|
|
},
|
|
contentBindings: {
|
|
jid: '.jid',
|
|
status: '.status'
|
|
},
|
|
initialize: function (opts) {
|
|
this.containerEl = opts.containerEl;
|
|
this.render();
|
|
},
|
|
render: function () {
|
|
this.subViewRender({context: {resource: this.model}});
|
|
this.handleBindings();
|
|
return this;
|
|
}
|
|
});
|