src/dropdown.js
function() {
        removeElement(this.$(LOAD_MORE_SELECTOR));
        this.resultsContainer.innerHTML += this.selectivity.template('loading');

        this.options.query({
            callback: function(response) {
                if (response && response.results) {
                    this._showResults(Selectivity.processItems(response.results), {
                        add: true,
                        hasMore: !!response.more
                    });
                } else {
                    throw new Error('callback must be passed a response object');
                }
            }.bind(this),
            error: this._showResults.bind(this, [], { add: true }),
            offset: this.results.length,
            selectivity: this.selectivity,
            term: this.term
        });
    }
function() {
        removeElement(this.$(LOAD_MORE_SELECTOR));
        this.resultsContainer.innerHTML += this.selectivity.template('loading');

        this.options.query({
            callback: function(response) {
                if (response && response.results) {
                    this._showResults(Selectivity.processItems(response.results), {
                        add: true,
                        hasMore: !!response.more
                    });
                } else {
                    throw new Error('callback must be passed a response object');
                }
            }.bind(this),
            error: this._showResults.bind(this, [], { add: true }),
            offset: this.results.length,
            selectivity: this.selectivity,
            term: this.term
        });
    }
function ( ) { removeElement ( this . $ ( LOAD_MORE_SELECTOR ) ) ; this . resultsContainer . innerHTML += this . selectivity . template ( 'loading' ) ; this . options . query ( { callback : function ( response ) { if ( response && response . results ) { this . _showResults ( Selectivity . processItems ( response . results ) , { add : true , hasMore : ! ! response . more } ) ; } else { throw new Error ( 'callback must be passed a response object' ) ; } } . bind ( this ) , error : this . _showResults . bind ( this , [ ] , { add : true } ) , offset : this . results . length , selectivity : this . selectivity , term : this . term } ) ; }
Loads a follow-up page with results after a search.

This method should only be called after a call to search() when the callback has indicated
more results are available.
Loads a follow - up page with results after a search .