public/build/static/application.js
function(options) {
            this.queue.defer(function() {
                options = _.defaults(options || {}, {
                    refresh: false
                });
                var d, self = this;

                if (this.options.loader == null) return this;
                if (options.refresh) {
                    this.options.startIndex = 0;
                    this._totalCount = null;
                    this.reset([]);
                }

                if (this._totalCount == null || this.hasMore() > 0 || options.refresh) {
                    this.options.startIndex = this.options.startIndex || 0;
                    d = Q(this[this.options.loader].apply(this, this.options.loaderArgs || []));
                    d.done(function() {
                        self.options.startIndex = self.options.startIndex + self.options.limit
                    });
                } else {
                    d = Q.reject();
                }

                return d;
            }, this);

            return this;
        }
function(options) {
            this.queue.defer(function() {
                options = _.defaults(options || {}, {
                    refresh: false
                });
                var d, self = this;

                if (this.options.loader == null) return this;
                if (options.refresh) {
                    this.options.startIndex = 0;
                    this._totalCount = null;
                    this.reset([]);
                }

                if (this._totalCount == null || this.hasMore() > 0 || options.refresh) {
                    this.options.startIndex = this.options.startIndex || 0;
                    d = Q(this[this.options.loader].apply(this, this.options.loaderArgs || []));
                    d.done(function() {
                        self.options.startIndex = self.options.startIndex + self.options.limit
                    });
                } else {
                    d = Q.reject();
                }

                return d;
            }, this);

            return this;
        }
function ( options ) { this . queue . defer ( function ( ) { options = _ . defaults ( options || { } , { refresh : false } ) ; var d , self = this ; if ( this . options . loader == null ) return this ; if ( options . refresh ) { this . options . startIndex = 0 ; this . _totalCount = null ; this . reset ( [ ] ) ; } if ( this . _totalCount == null || this . hasMore ( ) > 0 || options . refresh ) { this . options . startIndex = this . options . startIndex || 0 ; d = Q ( this [ this . options . loader ] . apply ( this , this . options . loaderArgs || [ ] ) ) ; d . done ( function ( ) { self . options . startIndex = self . options . startIndex + self . options . limit } ) ; } else { d = Q . reject ( ) ; } return d ; } , this ) ; return this ; }
Get more elements from an infinite collection

@method getMore
@chainable
Get more elements from an infinite collection