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 46ba683 commit ae3dd2cCopy full SHA for ae3dd2c
βjs/core.jsβ
@@ -92,6 +92,7 @@ proto.create = function() {
92
// bail if getPath not set
93
if ( !this.getPath ) {
94
console.error('Disabling InfiniteScroll');
95
+ return;
96
}
97
this.updateGetAbsolutePath();
98
this.log( 'initialized', [ this.element.className ] );
βtest/unit/path.jsβ
@@ -33,4 +33,13 @@ QUnit.test( 'path', function( assert ) {
33
'path option set with selector string' );
34
infScroll.destroy();
35
36
+ // path: bad
37
+ infScroll = new InfiniteScroll( '.demo--path', {
38
+ path: '.bad-path',
39
+ scrollThreshold: false,
40
+ history: false,
41
+ });
42
+ assert.ok( true, 'bad path does not throw error' );
43
+ infScroll.destroy();
44
+
45
});
0 commit comments