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

Bugfix: previous container list wasn't cleared #55

Closed
wants to merge 1 commit into from

Conversation

joningold
Copy link
Contributor

The equivalent c# for this section is

// First, find the previously open set of containers
if( _prevContainerSet == null ) _prevContainerSet = new HashSet ();
_prevContainerSet.Clear();

...with the if'd statement being there to avoid multiple allocations, but the Clear() being called every time. The JS was missing this clear, resulting in previous containers hanging around.

The equivalent c# for this section is 

// First, find the previously open set of containers
			if( _prevContainerSet == null ) _prevContainerSet = new HashSet<Container> ();
			_prevContainerSet.Clear();

...with the if'd statement being there to avoid multiple allocations, but the Clear() being called every time. The JS was missing this clear, resulting in previous containers hanging around.
@y-lohse
Copy link
Owner

y-lohse commented Mar 8, 2017

Good catch, Thanks for taking the time to submit the bug, find the origin and send a patch 😃 .
Merged in the dev branch as well.

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.

None yet

2 participants