addon/components/infinity-loader.js
/**
   * only load previous page if route started on a page greater than 1 && currentPage is > 0
   *
   * @method _debounceScrolledToTop
   */
only load previous page if route started on a page greater than 1 && currentPage is > 0
@method _debounceScrolledToTop
only load previous page if route started on a page greater than 1 && currentPage is > 0 @method _debounceScrolledToTop
_debounceScrolledToTop() {
    function loadPreviousPage(content) {
      if (typeof(get(this, 'infinityLoad')) === 'function') {
        return get(this, 'infinityLoad')(content, -1);
      } else {
        get(this, 'infinity').infinityLoad(content, -1)
      }
    }
    get(this, 'infinityModelContent').then((content) => {
      if (get(content, 'firstPage') > 1 && get(content, 'currentPage') > 0) {
        this._debounceTimer = debounce(this, loadPreviousPage, content, get(this, 'eventDebounce'));
      }
    })
  }
_debounceScrolledToTop ( ) { function loadPreviousPage ( content ) { if ( typeof ( get ( this , 'infinityLoad' ) ) === 'function' ) { return get ( this , 'infinityLoad' ) ( content , - 1 ) ; } else { get ( this , 'infinity' ) . infinityLoad ( content , - 1 ) } } get ( this , 'infinityModelContent' ) . then ( ( content ) => { if ( get ( content , 'firstPage' ) > 1 && get ( content , 'currentPage' ) > 0 ) { this . _debounceTimer = debounce ( this , loadPreviousPage , content , get ( this , 'eventDebounce' ) ) ; } } ) }
only load previous page if route started on a page greater than 1 && currentPage is > 0
 @method _debounceScrolledToTop
only load previous page if route started on a page greater than 1 && currentPage is > 0 @method _debounceScrolledToTop
/*
     This debounce is needed when there is not enough delay between onScrolledToBottom calls.
     Without this debounce, all rows will be rendered causing immense performance problems
     */ // closure action