Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.
This repository was archived by the owner on May 5, 2021. It is now read-only.

provide slider information in trigger function #405

@wangerniu

Description

@wangerniu

provide slider information in the trigger function

description: i want to do some thing before slide 2 coming, how can i do?

the trigger function dose not provide any slider information for current slider.

i'm tring to fin the resolve for this.

focus on following code :

  vars.currentSlide++;
            // Trigger the slideshowEnd callback
            if(vars.currentSlide === vars.totalSlides){ 
                vars.currentSlide = 0;
                //settings.slideshowEnd.call(this);
                settings.slideshowEnd(vars)
}

this code is picked from https://github.com/Codeinwp/Nivo-Slider-jQuery/blob/master/jquery.nivo.slider.js line 316 to 321.

i think it is no use to bind(this),

is it right? wating for your reply.

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