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

Check that $el is defined for #resizeParent() #27

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

Conversation

bj-mcduck
Copy link

This is a fix for #13, but I have no idea how you have your wp-tiles.js => wp-tiles.min.js compression setup.

For some reason, running wp-tiles.js gets Tiles undefined errors. I noticed that at the top of the min file there is a line with var Tiles = {}; and that isn't in the regular wp-tiles.js file.

I've added a small check that $el.offset() exists, and it returns 0 for the tileOffsetTop value if it doesn't. I would've run whatever compression script you do afterwards, but I have no idea how to.

Hope this helps

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.

1 participant