|
125 | 125 | * infinite scroll events upward
|
126 | 126 | * @param {boolean} scrollDown flag that there are pages downwards, so
|
127 | 127 | * fire infinite scroll events downward
|
128 |
| - * @returns {promise} promise that is resolved when the scroll reset is complete |
129 | 128 | */
|
130 | 129 | resetScroll: function( scrollUp, scrollDown ) {
|
131 | 130 | service.setScrollDirections( grid, scrollUp, scrollDown);
|
132 | 131 |
|
133 |
| - return service.adjustInfiniteScrollPosition(grid, 0); |
| 132 | + service.adjustInfiniteScrollPosition(grid, 0); |
134 | 133 | },
|
135 | 134 |
|
136 | 135 |
|
|
414 | 413 | * @description This function fires 'needLoadMoreData' or 'needLoadMoreDataTop' event based on scrollDirection
|
415 | 414 | * @param {Grid} grid the grid we're working on
|
416 | 415 | * @param {number} scrollTop the position through the grid that we want to scroll to
|
417 |
| - * @returns {promise} a promise that is resolved when the scrolling finishes |
418 | 416 | */
|
419 | 417 | adjustInfiniteScrollPosition: function (grid, scrollTop) {
|
420 | 418 | var scrollEvent = new ScrollEvent(grid, null, null, 'ui.grid.adjustInfiniteScrollPosition'),
|
|
448 | 446 | * infinite scroll events upward
|
449 | 447 | * @param {boolean} scrollDown flag that there are pages downwards, so
|
450 | 448 | * fire infinite scroll events downward
|
451 |
| - * @returns {promise} a promise that is resolved when the scrolling finishes |
452 | 449 | */
|
453 | 450 | dataRemovedTop: function( grid, scrollUp, scrollDown ) {
|
454 | 451 | var newVisibleRows, oldTop, newTop, rowHeight;
|
|
462 | 459 | // of rows removed
|
463 | 460 | newTop = oldTop - ( grid.infiniteScroll.previousVisibleRows - newVisibleRows )*rowHeight;
|
464 | 461 |
|
465 |
| - return service.adjustInfiniteScrollPosition( grid, newTop ); |
| 462 | + service.adjustInfiniteScrollPosition( grid, newTop ); |
466 | 463 | },
|
467 | 464 |
|
468 | 465 | /**
|
|
485 | 482 |
|
486 | 483 | newTop = grid.infiniteScroll.prevScrollTop;
|
487 | 484 |
|
488 |
| - return service.adjustInfiniteScrollPosition( grid, newTop ); |
| 485 | + service.adjustInfiniteScrollPosition( grid, newTop ); |
489 | 486 | }
|
490 | 487 | };
|
491 | 488 | return service;
|
|
0 commit comments