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

remove unnecessary this binding for helper (ONLY needed for callbacks) #167

Merged

Conversation

marcusvmsa
Copy link
Contributor

No description provided.

constructor(props, context) {
super(props, context);

_.bindAll(this, '_renderNotification');
Copy link
Member

Choose a reason for hiding this comment

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

@MaMute Can you check this is actually required, meaning a binding of this.

The reason I ask is that it looks like this._renderNotifcation is simply a helper that returns either null or a react component.

I suspect that the fix is that that the :: was not needed.

@marcusvmsa marcusvmsa force-pushed the convert-bindings-for-react-callbacks branch from d7dc9e4 to 9118f87 Compare December 4, 2015 12:09
@marcusvmsa
Copy link
Contributor Author

@justin808 you're right, i've checked and fixed

@justin808 justin808 changed the title convert :: bindings for react callbacks to use _.bindAll remove unnecessary this binding for helper (ONLY needed for callbacks) Dec 4, 2015
justin808 added a commit that referenced this pull request Dec 4, 2015
remove unnecessary this binding for helper (ONLY needed for callbacks)
@justin808 justin808 merged commit 01a14b2 into shakacode:master Dec 4, 2015
@justin808
Copy link
Member

Thanks. @alexfedoseev FYI...

@MaMute I updated the title.

@marcusvmsa
Copy link
Contributor Author

👍

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