Skip to content

Commit

Permalink
Fix Promise always return on infiniteScroll()
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed Jan 16, 2019
1 parent 67baeaa commit 21c3ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ function infiniteScroll () {
'use strict';
var noMoreEventsEl = $('#no-more-events');
if(noMoreEventsEl.is(':visible')) {
return false;
return Promise.resolve();
}
var loading = $('#infinite-scroll-loading');
$(window).data('ajaxready', false);
Expand Down

0 comments on commit 21c3ed6

Please sign in to comment.