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

refactor groupBy behaviors for browser compatibility #1318

Closed
wants to merge 2 commits into from

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Feb 9, 2016

This PR fixes compatibility of groupBy on some browsers.

Root cause was removing groups for completion (error, complete..) inside of map::foreach to clear all groups, doesn't supported by polyfill implementation of map. PR introduces map::clear() interface for explicit clearing and utilize it.

cc @staltz for visibility.

@kwonoj kwonoj closed this Feb 9, 2016
@kwonoj kwonoj reopened this Feb 9, 2016
@kwonoj
Copy link
Member Author

kwonoj commented Feb 9, 2016

For some reason travis does not detect this PR, force close-reopened PR to trigger it.

@@ -137,8 +138,9 @@ class GroupBySubscriber<T, K, R> extends Subscriber<T> implements RefCountSubscr
if (groups) {
groups.forEach((group, key) => {
group.complete();
this.removeGroup(key);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clever fix

@kwonoj
Copy link
Member Author

kwonoj commented Feb 10, 2016

Merged with ace3932.

@kwonoj kwonoj closed this Feb 10, 2016
@kwonoj kwonoj deleted the fix-groupby branch February 10, 2016 05:42
@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants