Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two executions of command when using cycle-update-view #811

Closed
Cocopocoloco opened this issue Apr 25, 2017 · 1 comment
Closed

Two executions of command when using cycle-update-view #811

Cocopocoloco opened this issue Apr 25, 2017 · 1 comment

Comments

@Cocopocoloco
Copy link

Hello,

When i am executing this

$('#cycle_container').on('cycle-update-view', function(event, optionHash, slideOptionsHash, currentSlideEl){
currentSlide = optionHash.currSlide;
console.log('Slide : '+currentSlide);
}

Commands in are executed two times. I have got two "Slide : 1" in my JS console , for example.
Best regards.

@Cocopocoloco
Copy link
Author

OK, data-cycle-update-view="-1" is the answer. :-)

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

No branches or pull requests

1 participant