2015-09-07 21:53:43 +00:00
|
|
|
/*
|
|
|
|
* vim: ts=4:sw=4:expandtab
|
2015-09-03 20:33:17 +00:00
|
|
|
*/
|
|
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
window.Whisper = window.Whisper || {};
|
|
|
|
|
|
|
|
Whisper.ContactListView = Whisper.ListView.extend({
|
|
|
|
tagName: 'div',
|
|
|
|
itemView: Whisper.View.extend({
|
|
|
|
tagName: 'div',
|
|
|
|
className: 'contact',
|
|
|
|
template: Whisper.View.Templates.contact,
|
|
|
|
render_attributes: function() {
|
|
|
|
return {
|
|
|
|
title: this.model.getTitle(),
|
|
|
|
number: this.model.getNumber(),
|
|
|
|
avatar: this.model.getAvatar()
|
|
|
|
};
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|
|
|
|
})();
|