mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-22 17:22:22 -05:00
28 lines
628 B
JavaScript
28 lines
628 B
JavaScript
/*global $, app, me*/
|
|
"use strict";
|
|
|
|
var _ = require('underscore');
|
|
var StrictView = require('strictview');
|
|
var templates = require('../templates');
|
|
|
|
|
|
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;
|
|
}
|
|
});
|