Skip to content

Commit f11090e

Browse files
committed
fix blocks example
1 parent e641e16 commit f11090e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/blocks/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ let nextHandler = function(pageIndex) {
1313
block.innerHTML = i + 1;
1414
}
1515

16-
return this.append(Array.from(frag.childNodes));
16+
return this.append(Array.from(frag.childNodes))
17+
// indicate that there is a next page to load
18+
.then(() => true);
1719
};
1820

1921
window.ias = new InfiniteAjaxScroll('.blocks', {

0 commit comments

Comments
 (0)