-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Stop using addEventListener/removeEventListener for IE8 compatibility #183
Conversation
_unbindCloseMenuIfClickedOutside
…nto issue175 Conflicts: src/Select.js
…n be tested under IE8
Please squash to 1 commit. |
@@ -37,7 +37,9 @@ | |||
<div class="footer"> | |||
Copyright © Jed Watson 2014. MIT Licensed. | |||
</div> | |||
</div> | |||
</div> | |||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.1/es5-shim.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without the shim, the example wouldn't run under IE8, so I couldn't verify wether the fix worked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we were going to use a shim, why not just use what we had before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because the shim doesn't abstract away the difference in api of attaching an event handler between IE8 and all other browsers
@StefanBilliet whats the conclusion? |
That I was doing something very stupid with my branches; trying to rectify the situation -_- |
I created a new PR here: #193 |
Hi
As discussed in issue 175, here is the pull request.
npm test, npm run lint and npm run style all pass, so I hope everything is in order.
With kind regards
Stefan Billiet