Skip to content

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

Open
peterchappell wants to merge 1 commit into
sachinchoolur:masterfrom
peterchappell:ie-event-patch
Open

use try catch for e.preventDefault in setTimeout for resize/orientation change. Fixes member not found error in old IEs.#138
peterchappell wants to merge 1 commit into
sachinchoolur:masterfrom
peterchappell:ie-event-patch

Conversation

@peterchappell

Copy link
Copy Markdown

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