(function() {
  define(function(require, exports, module) {
    var ClientListView, ClientView;
    ClientView = require('lib/views/client');
    ClientListView = Backbone.View.extend({
      initialize: function(opt) {
        this.project = opt.project;
        this.project.on('clients:add', this.addOne, this);
        return _.each(this.project.getClients(), this.addOne, this);
      },
      addOne: function(client) {
        var view;
        view = new ClientView({
          model: client
        });
        return this.$el.append(view.render().el);
      }
    });
    return module.exports = ClientListView;
  });

}).call(this);
