Skip to content
Discussion options

You must be logged in to vote

Use bind() to attach default click handler to the selector. Here - https://github.com/fancyapps/ui/blob/main/src/Fancybox/Fancybox.js#L1496 - is the default selector. When you call bind() multiple times with the same selector, you are just overwriting options (for that selector).
btw, information about selectors and options is stored inside Fancybox.openers Map object.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@cascading-jox
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by cascading-jox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants