Skip to content

Trigger 'alnp-post-loaded' have pframeter as array #183

@TooLogic

Description

@TooLogic

Describe the bug

View source code auto-load-next-post.(dev).js
row 417
var triggerParams = [ post_title.text(), post_url, post_ID, post_count ];
rows 459-460
// Run an event once the post has loaded.
$( 'body' ).trigger( 'alnp-post-loaded', triggerParams );

And you recomend to use this trigger next side

$('body').on( 'alnp-post-loaded', function( e, params ) {
var post_limit = 10;
if ( params.post_count == post_limit ) {
// Post count has reached maxiumum amount. No more posts will load.
stop_reading = true;
$( nav_container ).remove(); // Remove post navigation.
return;
}
});

params.post_count? Are you seriously?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions