GitHub - clusterflunk/flunkybone: A thin wrapper around backbone.js that does a few extra cool things.

A thin wrapper around backbone.js that does a few extra cool things.

/* Cached Elements */
this.items_el = this.$el;
this.end_of_list_el = this.items_el.find('.end');
this.scroll_el = $('.load_more');
this.scroll_text = this.scroll_el.find('.text');
this.scroll_spinner = this.scroll_el.find('.spinner_gif');

/* Subview */
this.infinite_items = new Flunkybone.InfiniteCollectionView({
    'el': this.items_el,
    'collection': this.collection,
    'limit': 2,
    'end_of_list_el': this.end_of_list_el,
    'scroll_el': this.scroll_el,
    'scroll_el_bottom_margin': 40,
    'scroll_text_el': this.scroll_text,
    'scroll_spinner_el': this.scroll_spinner
});