addon/components/infinity-loader.js
/*
     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
     */
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
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
function loadMore() {
      get(this, 'infinityModelContent').then((content) => {
        if (typeof(get(this, 'infinityLoad')) === 'function') {
          return get(this, 'infinityLoad')(content);
        } else {
          get(this, 'infinity').infinityLoad(content, 1)
            .then(() => {
              if (get(content, 'canLoadMore')) {
                this._checkScrollableHeight();
              }
            });
        }
      });
    }
function loadMore ( ) { get ( this , 'infinityModelContent' ) . then ( ( content ) => { if ( typeof ( get ( this , 'infinityLoad' ) ) === 'function' ) { return get ( this , 'infinityLoad' ) ( content ) ; } else { get ( this , 'infinity' ) . infinityLoad ( content , 1 ) . then ( ( ) => { if ( get ( content , 'canLoadMore' ) ) { this . _checkScrollableHeight ( ) ; } } ) ; } } ) ; }
This debounce is needed when there is not enough delay between onScrolledToBottom calls.
This debounce is needed when there is not enough delay between onScrolledToBottom calls .
// resolve to create thennable // type is <InfinityModel|Promise|null> // closure action (if you need to perform some other logic) // service action