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

De20872 code review suggestion remove event listener #85

Conversation

tylergee
Copy link
Contributor

No description provided.

client.sendEvent('userIsActive');
}));
document.addEventListener('keydown', throttle(function() {
var listener = throttle(function userActivityListener() {
Copy link
Member

Choose a reason for hiding this comment

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

You don't need the function names here (or in the removal below). So this could just be:

var listener = throttle(function() {
    client.sendEvent('userIsActive');
});

Copy link
Contributor

@omsmith omsmith Aug 25, 2016

Choose a reason for hiding this comment

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

lack of need is definitely true - I added them for stack-tracey things, but either way :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So what's the consensus - leave function name for stack-tracey-purposes, or remove?

Copy link
Member

Choose a reason for hiding this comment

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

I'm good either way as well, up to you Tyler!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, thanks. I'm good leaving the function names present. then. If we're satisfied, can you merge and version ifrau @dlockhart? Thanks :-)

Copy link
Member

Choose a reason for hiding this comment

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

Done -- v0.17.1.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 96.896% when pulling b1112be on tylergee:DE20872_code_review_suggestion_remove_event_listener into efb4f69 on Brightspace:master.

@dlockhart dlockhart merged commit 1cbe0db into Brightspace:master Aug 25, 2016
@tylergee tylergee deleted the DE20872_code_review_suggestion_remove_event_listener branch August 25, 2016 17:16
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.

4 participants