addon/components/infinity-loader.js
/**
    calculate the bottom of the viewport

    @private
    @method _viewportBottom
    @return Integer
   */
calculate the bottom of the viewport
calculate the bottom of the viewport
_viewportBottom() {
    if (typeof FastBoot === 'undefined') {
      let isScrollable = !!this.scrollable;
      let viewportElem = isScrollable ? document.querySelector(this.scrollable) : window;
      return isScrollable ? viewportElem.getBoundingClientRect().bottom : viewportElem.innerHeight;
    }
  }
_viewportBottom ( ) { if ( typeof FastBoot === 'undefined' ) { let isScrollable = ! ! this . scrollable ; let viewportElem = isScrollable ? document . querySelector ( this . scrollable ) : window ; return isScrollable ? viewportElem . getBoundingClientRect ( ) . bottom : viewportElem . innerHeight ; } }
calculate the bottom of the viewport
calculate the bottom of the viewport