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

Invoke firing multiple times #40

Open
rpholdaway opened this issue Jun 28, 2017 · 1 comment
Open

Invoke firing multiple times #40

rpholdaway opened this issue Jun 28, 2017 · 1 comment

Comments

@rpholdaway
Copy link

Hi

I'm trying to load the content of a slideshow (view, https://tympanus.net/codrops/2014/06/26/draggable-dual-view-slideshow/) using the invoke command every time the slide is changed by the user.

I'm using the invoke method to call PJAX programmatically (each time the slide changes) but if the slideshow has changed twice, the completed callback of invoke will fire twice, if the slideshow is changing for a third time the completed callback 3 times, if the slideshow changes for a 4th time, the completed callback is fired 4 times and on and on.

What am I doing wrong?

@rpholdaway
Copy link
Author

Apologies - was working too long without a break. Wanted to delete this issue but I don't think I can?

Invoke was adding multiple event listeners to my container just FYI.

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