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

use try catch for e.preventDefault in setTimeout for resize/orientation change. Fixes member not found error in old IEs. #138

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

Conversation

peterchappell
Copy link

This should solve the member not found error mentioned in #105

Apparently in old versions of IE, events don't get passed through a setTimeout?!
http://stackoverflow.com/questions/3531751/member-not-found-ie-error-ie-6-7-8-9
http://stackoverflow.com/questions/7993085/ie-9-showing-displaying-member-not-found

Some solutions involve creating a duplicate of the error object and using that but I figured a try/catch would pretty much do the same as the if condition that you'd previously used to solve this problem.

…found" error for older versions of ie (apparently older versions of ie don't allow the error object to be passed through a setTimeout).
@peterchappell peterchappell changed the title use try catch for e.preventDefault in timout. improves old ie error use try catch for e.preventDefault in setTimeout for resize/orientation change. Fixes member not found error in old IEs. May 25, 2015
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