WordPress.org

Support

Support » Plugins and Hacks » Jetpack by WordPress.com » [Resolved] Checking for infinite scroll JS variables

[Resolved] 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.

    http://wordpress.org/extend/plugins/jetpack/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Checking for infinite scroll JS variables’ is closed to new replies.
Skip to toolbar