- _.each @collection().models, (item) ->\r
- c = _this.file_item_class()\r
- file_item = new c({'file_body': _this, 'item': item})\r
- args = {'file_body': _this}\r
- template = _.template($("#" + file_item.template_name()).html())\r
- _this.$el.append(template(args))\r
+ this.$el.html('')\r
+ _.each @collection, (file_item) ->\r
+ _this.$el.append(file_item.render().el)\r