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 connect and listenermixin combo (fixes #118) #131

Merged
merged 4 commits into from
Nov 20, 2014

Conversation

krawaller
Copy link
Contributor

The old code in connect dynamically imported the ListenerMixin methods, and threw an error if component already had prop with the same name that wasn't from ListenerMixin.

However, as React wraps all functions, the test to see if the methods were from ListenerMixin would always fail. This pull request therefore removes the test and replaces the error with a warning that you either clobbered your existing property, or used connect and ListenerMixin in the same object which is unnecessary.

This solves bug #118.

spoike added a commit that referenced this pull request Nov 20, 2014
fix connect and listenermixin combo (fixes #118)
@spoike spoike merged commit 2547a94 into reflux:master Nov 20, 2014
@spoike spoike added this to the 0.1.16 milestone Nov 20, 2014
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