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

elementInViewport(): return false if element is falsey #1049

Merged
merged 1 commit into from
May 14, 2014

Conversation

bronzle
Copy link
Contributor

@bronzle bronzle commented May 13, 2014

This is somewhat related to PR #1048 -- you can dismiss this if you'd like as my other fix for the scrolling sidebar won't run into this issue any more.

None the less, I figured it wouldn't hurt to short circuit the RESUtils.elementInViewport function to return false if obj is falsey (e.g. doesn't exist)

@jewel-andraia
Copy link
Collaborator

this PR is great -- i think the current code has been throwing errors in safari because no sanity check

honestbleeps added a commit that referenced this pull request May 14, 2014
elementInViewport(): return false if element is falsey
@honestbleeps honestbleeps merged commit c059b3a into honestbleeps:master May 14, 2014
@jewel-andraia jewel-andraia mentioned this pull request May 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants