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 - Undefined self #3

Merged
merged 1 commit into from
Mar 20, 2017
Merged

Bugfix - Undefined self #3

merged 1 commit into from
Mar 20, 2017

Conversation

atticoos
Copy link
Contributor

@atticoos atticoos commented Mar 20, 2017

#2 fixed an issue where self wasn't declared, and instead used this. As it turns out, when running the compiled build (not in development mode via chrome), that lead to some errors where this wasn't defined.

This ensures the reference works both in development and production modes on React Native by using either this or global, depending on which one exists.

The error can be seen below
screen shot 2017-03-20 at 12 17 08 pm

This has been verified to work in both environments, hadn't tested both in #2. Third time's a charm...

Copy link
Contributor

@christophermark christophermark left a comment

Choose a reason for hiding this comment

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

This feels familiar!
👍

@christophermark christophermark merged commit 85ad6c5 into master Mar 20, 2017
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.

2 participants