|
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 |
|
|
403 | 402 | * @description This function fires 'needLoadMoreData' or 'needLoadMoreDataTop' event based on scrollDirection
|
404 | 403 | * @param {Grid} grid the grid we're working on
|
405 | 404 | * @param {number} scrollTop the position through the grid that we want to scroll to
|
406 |
| - * @returns {promise} a promise that is resolved when the scrolling finishes |
407 | 405 | */
|
408 | 406 | adjustInfiniteScrollPosition: function (grid, scrollTop) {
|
409 | 407 | var scrollEvent = new ScrollEvent(grid, null, null, 'ui.grid.adjustInfiniteScrollPosition'),
|
|
437 | 435 | * infinite scroll events upward
|
438 | 436 | * @param {boolean} scrollDown flag that there are pages downwards, so
|
439 | 437 | * fire infinite scroll events downward
|
440 |
| - * @returns {promise} a promise that is resolved when the scrolling finishes |
441 | 438 | */
|
442 | 439 | dataRemovedTop: function( grid, scrollUp, scrollDown ) {
|
443 | 440 | var newVisibleRows, oldTop, newTop, rowHeight;
|
|
451 | 448 | // of rows removed
|
452 | 449 | newTop = oldTop - ( grid.infiniteScroll.previousVisibleRows - newVisibleRows )*rowHeight;
|
453 | 450 |
|
454 |
| - return service.adjustInfiniteScrollPosition( grid, newTop ); |
| 451 | + service.adjustInfiniteScrollPosition( grid, newTop ); |
455 | 452 | },
|
456 | 453 |
|
457 | 454 | /**
|
|
474 | 471 |
|
475 | 472 | newTop = grid.infiniteScroll.prevScrollTop;
|
476 | 473 |
|
477 |
| - return service.adjustInfiniteScrollPosition( grid, newTop ); |
| 474 | + service.adjustInfiniteScrollPosition( grid, newTop ); |
478 | 475 | }
|
479 | 476 | };
|
480 | 477 | return service;
|
|
0 commit comments