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

Fix reference to props in constructor #411

Merged
merged 1 commit into from
Mar 22, 2018
Merged

Fix reference to props in constructor #411

merged 1 commit into from
Mar 22, 2018

Conversation

mjfaga
Copy link
Contributor

@mjfaga mjfaga commented Mar 21, 2018

In <=IE10, this.props is null, so when attempting to set the namespaces,
the reference to this.props.ns raises an exception. By updating the
reference to use the version passed into the constructor, we are
consistent with other usages of props on the constructor, and I've
confirmed this patch works in <=IE10 as well.

In <=IE10, `this.props` is null, so when attempting to set the namespaces,
the reference to `this.props.ns` raises an exception. By updating the
reference to use the version passed into the constructor, we are
consistent with other usages of props on the constructor, and I've
confirmed this patch works in <=IE10 as well.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 81.481% when pulling 1503902 on mjfaga:master into fec5f5f on i18next:master.

@jamuhl jamuhl merged commit eb167f5 into i18next:master Mar 22, 2018
@jamuhl
Copy link
Member

jamuhl commented Mar 22, 2018

thank you...published in react-i18next@7.5.1

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