Checking for infinite scroll JS variables
-
When checking if the infinite scroll JavaScript variables are set you should check it is not undefined or is an object, rather than it’s truthy-ness. Line 460 of
infinity.js
should become:if ( 'object' != typeof infiniteScroll ) return;
I came across this when extracting the infinite scroll functionality for use in my own theme.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Checking for infinite scroll JS variables’ is closed to new replies.