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

Make ObservableSet backport compatible with IE11 #1917

Merged
merged 1 commit into from
Mar 14, 2019

Conversation

kalmi
Copy link

@kalmi kalmi commented Mar 1, 2019

The original implementation and the backport made use of Array.from.
Mobx4 appears to avoid the usage of Array.from by instead using its
internal iteratorToArray function. All Array.from calls have been
replaced by iteratorToArray calls.
Also, IE11 lacks the "values" function on Sets,
and even ObservableSet.toString ended up depending on it.
A workaround has been implemented that allows the
ObservableSet.values to work even in IE11.

The original implementation and the backport made use of Array.from.
Mobx4 appears to avoid the usage of Array.from by instead using its
internal iteratorToArray function. All Array.from calls have been
replaced by iteratorToArray calls.
Also, IE11 lacks the "values" function on Sets,
and even ObservableSet.toString depends on it.
A workaround has been implemented that allows the
ObservableSet.values to work even in IE11.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 92.332% when pulling 94bebee on kalmi:set-ie11-compat into 7f5868b on mobxjs:mobx4-master.

@mweststrate
Copy link
Member

Great, thanks a lot!

@mweststrate mweststrate self-requested a review March 1, 2019 15:40
@mweststrate mweststrate merged commit 51631b8 into mobxjs:mobx4-master Mar 14, 2019
@mweststrate
Copy link
Member

Released as 4.9.3, thanks!

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.

3 participants