Created
January 5, 2012 21:42
-
-
Save nambrot/1567480 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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