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

Bug fix if destroy is called before image onload has finished. #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Bug fix if destroy is called before image onload has finished. #69

wants to merge 1 commit into from

Conversation

crispwake
Copy link

If destroy was called before the image onload was triggered, the onload function was still executed and appended the image to the page despite being destroyed.

This could cause many instances of the 'zoom' image to be appended undesirably, for example when initiating zoom on mouseover of thumbnails and destroying on mouseout. If a user drags mouse across thumbnails, all zoom images would be appended to the page despite destroy being called on mouseout prior to the image loading.

… onload during destroy.

If destroy was called before the image onload was triggered, the onload function was still executed and appended the image to the page despite being destroyed.
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

Successfully merging this pull request may close these issues.

2 participants