Skip to content

Instantly share code, notes, and snippets.

@nambrot
Created January 5, 2012 21:42
Show Gist options
  • Save nambrot/1567480 to your computer and use it in GitHub Desktop.
Save nambrot/1567480 to your computer and use it in GitHub Desktop.
//CollectionView
addItem: function (item) {
// receive the appropriate view from the map in the application object
var view = new a.modelmap[item.get('type')].thumbView({model: item});
// append it to the view
$(this.el).append(view.el);
// update masonry
this.update();
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment