Skip to content

Loading…

Teardown nulls the _mappings dict #71

Closed
darscan opened this Issue · 0 comments

2 participants

@darscan

https://github.com/tschneidereit/SwiftSuspenders/blob/master/src/org/swiftsuspenders/Injector.as#L414

This renders the injector unusable after calling teardown. Would it not be better to simply new up a fresh dictionary?

@tschneidereit tschneidereit added a commit that closed this issue
@tschneidereit Change Injector#teardown to re-initialize all Dictionaries used to ho…
…ld internal state.

Thanks @darscan for the hint: the previous behavior was suboptimal indeed. Especially given that no error checking was done to detect the usage of torn down injectors.
Also increases version to 2.0.0rc1
Closes #71
1b7a9d5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.