We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2b25d9 commit b7f99adCopy full SHA for b7f99ad
js/core.js
@@ -89,8 +89,9 @@ proto.create = function() {
89
this.pageIndex = 1; // default to first page
90
this.loadCount = 0;
91
this.updateGetPath();
92
- // bail if getPath not set
93
- if ( !this.getPath ) {
+ // bail if getPath not set, or returns falsey #776
+ var hasPath = this.getPath && this.getPath();
94
+ if ( !hasPath ) {
95
console.error('Disabling InfiniteScroll');
96
return;
97
}
0 commit comments