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',
|
2015-12-08 23:01:29 +00:00
|
|
|
templateName: 'contact',
|
2015-09-03 20:33:17 +00:00
|
|
|
render_attributes: function() {
|
|
|
|
return {
|
|
|
|
title: this.model.getTitle(),
|
|
|
|
number: this.model.getNumber(),
|
|
|
|
avatar: this.model.getAvatar()
|
|
|
|
};
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|
|
|
|
})();
|