1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-23 01:32:18 -05:00
kaiwa/clientapp/views/contactListItemResource.js

28 lines
628 B
JavaScript
Raw Normal View History

2013-08-29 23:38:28 -04:00
/*global $, app, me*/
"use strict";
2013-08-20 13:45:06 -04:00
var _ = require('underscore');
2013-08-29 23:38:28 -04:00
var StrictView = require('strictview');
var templates = require('../templates');
2013-08-20 13:45:06 -04:00
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;
}
});