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

provide slider information in trigger function #405

Open
wangerniu opened this issue May 29, 2017 · 0 comments
Open

provide slider information in trigger function #405

wangerniu opened this issue May 29, 2017 · 0 comments

Comments

@wangerniu
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant