1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-12 12:35:00 -05:00
kaiwa/clientapp/app/views/contactListItemResource.js
2013-08-20 10:45:06 -07:00

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;
}
});