loadPrevious() {
    const end = this.visibleStart;
    const start = this.visibleStart = this.sanitizeIndex(this.visibleStart - this.constructor.loadCount);

    // Unload the posts which are two pages back from the page we're currently
    // loading.
    const twoPagesAway = start + this.constructor.loadCount * 2;
    if (twoPagesAway < this.visibleEnd && twoPagesAway <= this.count()) {
      this.visibleEnd = twoPagesAway;

      if (this.loadPageTimeouts[twoPagesAway]) {
        clearTimeout(this.loadPageTimeouts[twoPagesAway]);
        this.loadPageTimeouts[twoPagesAway] = null;
        this.pagesLoading--;
      }
    }

    this.loadPage(start, end, true);
  }
/**
   * Load the previous page of posts.
   */
Load the previous page of posts.
Load the previous page of posts .
loadPrevious() {
    const end = this.visibleStart;
    const start = this.visibleStart = this.sanitizeIndex(this.visibleStart - this.constructor.loadCount);
    const twoPagesAway = start + this.constructor.loadCount * 2;
    if (twoPagesAway < this.visibleEnd && twoPagesAway <= this.count()) {
      this.visibleEnd = twoPagesAway;
      if (this.loadPageTimeouts[twoPagesAway]) {
        clearTimeout(this.loadPageTimeouts[twoPagesAway]);
        this.loadPageTimeouts[twoPagesAway] = null;
        this.pagesLoading--;
      }
    }
    this.loadPage(start, end, true);
  }
loadPrevious ( ) { const end = this . visibleStart ; const start = this . visibleStart = this . sanitizeIndex ( this . visibleStart - this . constructor . loadCount ) ; const twoPagesAway = start + this . constructor . loadCount * 2 ; if ( twoPagesAway < this . visibleEnd && twoPagesAway <= this . count ( ) ) { this . visibleEnd = twoPagesAway ; if ( this . loadPageTimeouts [ twoPagesAway ] ) { clearTimeout ( this . loadPageTimeouts [ twoPagesAway ] ) ; this . loadPageTimeouts [ twoPagesAway ] = null ; this . pagesLoading -- ; } } this . loadPage ( start , end , true ) ; }
Load the previous page of posts.
Load the previous page of posts .
// Unload the posts which are two pages back from the page we're currently // loading.