Skip to content

Commit

Permalink
KIALL TEH FOUR LOOOP!
Browse files Browse the repository at this point in the history
  • Loading branch information
nfelger committed May 29, 2011
1 parent 04005ec commit d5bcb76
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tractor.js
Expand Up @@ -36,12 +36,13 @@ window.AppView = Backbone.View.extend({
},

render: function() {
for(var i = 0; i < this.artists.length; i++) {
var el = this.el;
this.artists.each(function(artist) {
var artistListItem = $("<li></li>")
var artistView = new ArtistView;
artistView.el = artistListItem;
artistView.render(this.artists.at(i));
this.el.append(artistListItem);
}
artistView.render(artist);
el.append(artistListItem);
});
}
});

0 comments on commit d5bcb76

Please sign in to comment.