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

Changes to support IE 11 #75

Closed
wants to merge 3 commits into from
Closed

Conversation

mmartinmo
Copy link

-replace usage of Set with HashSet to support IE 11
-add implementation of Array.from() to support IE11

@maxkfranz
Copy link
Member

Thanks for the PR. This might be a good approach in the short-term.

Or the readme could be updated to say that a polyfill, like babel-polyfill is required if pre-ES6 browsers are used.

It's probably not practical in the long-term to keep adding internal workarounds for old browsers, especially when most client projects would be using Babel anyway. I would hope that eventually things like HashSet would be removed entirely to just use Set and simplify the extension.

@ugurdogrusoz What is your opinion?

@ugurdogrusoz
Copy link
Contributor

Changes in data structures often have a huge impact on the performance. I don't think we should try to support old browser versions.

maxkfranz added a commit to maxkfranz/cytoscape.js-cose-bilkent that referenced this pull request Oct 24, 2018
@maxkfranz maxkfranz mentioned this pull request Oct 24, 2018
hasanbalci pushed a commit that referenced this pull request Oct 26, 2018
* Ignore node_modules in gh-pages

* Add shims to the demos and adds a notice to the readme that old browsers are unsupported

Ref #75
@maxkfranz
Copy link
Member

maxkfranz commented Oct 26, 2018

PR #77 addresses the demo without making changes to the extension itself. As Ugur mentioned, this extension probably won't be able to support old browsers without polyfills.

@ugurdogrusoz @hasanbalci It may make sense to mention in the readme that old browsers are unsupported without polyfills. We could link to core-js as an example polyfill that could be used.

@ugurdogrusoz
Copy link
Contributor

@hasanbalci Can we please put a small note in the README about not supporting older browsers as Max suggested?

@hasanbalci
Copy link
Contributor

hasanbalci commented Nov 21, 2018

@ugurdogrusoz Actually, a note currently exists in the README of the unstable branch. So, I think we can close this pull request.

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.

4 participants