1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-26 11:12:16 -05:00
kaiwa/clientapp/views/main.js

18 lines
462 B
JavaScript
Raw Normal View History

2013-08-29 23:38:28 -04:00
/*global $, app, me*/
"use strict";
var StrictView = require('strictview');
var templates = require('../templates');
var ContactListItem = require('../views/contactListItem');
module.exports = StrictView.extend({
template: templates.body,
render: function () {
$('head').append(templates.head());
this.renderAndBind();
this.renderCollection(me.contacts, ContactListItem, this.$('#contactList'));
return this;
}
});