Skip to content

Commit fafadea

Browse files
committed
pass along hasPrevUrl
1 parent 916823d commit fafadea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/infinite-ajax-scroll.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,12 @@ export default class InfiniteAjaxScroll {
211211
if (!hasPrevUrl) {
212212
this.emitter.emit(Events.FIRST);
213213
}
214-
}).then(() => {
214+
215+
return hasPrevUrl;
216+
}).then((hasPrevUrl) => {
215217
this.emitter.emit(Events.PREVED, {pageIndex: this.pageIndexPrev});
218+
219+
return hasPrevUrl;
216220
});
217221
}
218222

0 commit comments

Comments
 (0)