mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-26 11:12:16 -05:00
29 lines
624 B
JavaScript
29 lines
624 B
JavaScript
/*global $*/
|
|
"use strict";
|
|
|
|
var _ = require('underscore');
|
|
var HumanView = require('human-view');
|
|
var templates = require('../templates');
|
|
|
|
|
|
module.exports = HumanView.extend({
|
|
template: templates.includes.call,
|
|
classBindings: {
|
|
state: ''
|
|
},
|
|
render: function () {
|
|
this.renderAndBind();
|
|
// register bindings for sub model
|
|
this.registerBindings(this.model.contact, {
|
|
textBindings: {
|
|
displayName: '.callerName'
|
|
},
|
|
srcBindings: {
|
|
avatar: '.callerAvatar'
|
|
}
|
|
});
|
|
|
|
return this;
|
|
}
|
|
});
|