Codeinwp / Nivo-Slider-jQuery

Nivo Slider - The Most Awesome jQuery Image Slider
http://docs.themeisle.com/article/485-getting-started-with-the-nivo-slider-jquery-plugin
MIT License
1.25k stars 605 forks source link

provide slider information in trigger function #405

Open wangerniu opened 7 years ago

wangerniu commented 7 years ago

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.