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

Make sure we don't bind the wrong this #3

Merged
merged 1 commit into from
Aug 19, 2016

Conversation

ttacon
Copy link
Contributor

@ttacon ttacon commented Aug 19, 2016

No description provided.

@ttacon ttacon merged commit 0d5230c into master Aug 19, 2016
@ttacon ttacon deleted the make-sure-we-dont-bind-the-wrong-this branch August 19, 2016 15:06
setInterval(this._sendMetrics, this.options.sendInterval);
if (self.options.enabled) {
setInterval(() => {
self._sendMetrics();
Copy link
Contributor

Choose a reason for hiding this comment

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

Using an arrow function here would actually allow you to use this

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.

None yet

2 participants