Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

If the toggle button doesn't exist, don't get it's offset #35

Merged
merged 1 commit into from Apr 8, 2014

Conversation

cshold
Copy link
Contributor

@cshold cshold commented Apr 8, 2014

If the element is defined but has no offset, there is nothing to measure and breaks the JS. This checks to make sure an offset exists.

cshold added a commit that referenced this pull request Apr 8, 2014
If the toggle button doesn't exist, don't get it's offset
@cshold cshold merged commit 4ac7ace into master Apr 8, 2014
@cshold cshold deleted the ajax-cart-toggle-fix branch April 21, 2014 18:31
cimocimocimo pushed a commit to cimocimocimo/Theia-Shopify-Theme that referenced this pull request Nov 25, 2014
If the toggle button doesn't exist, don't get it's offset
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant