Skip to content

Conversation

@aminya
Copy link
Member

@aminya aminya commented Jul 2, 2022

atom#1155

See atom/find-and-replace@9da0512#commitcomment-55840601

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Alternate Designs

Benefits

Possible Drawbacks

Applicable Issues

}));

this.refs.replaceNextButton.addEventListener('click', e => e.shiftKey ? this.replacePrevious() : this.replaceNext()));
this.refs.replaceNextButton.addEventListener('click', e => e.shiftKey ? this.replacePrevious.bind(this) : this.replaceNext.bind(this));
Copy link
Member Author

@aminya aminya Jul 2, 2022

Choose a reason for hiding this comment

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

@icecream17 I don't think this is correct. Because e => this.replacePrevious() : this.replaceNext() is already a lambda. There is no need for bind.

@icecream17 icecream17 mentioned this pull request Jul 2, 2022
icecream17 referenced this pull request in atom/find-and-replace Jul 3, 2022
@aminya aminya closed this in #3 Jul 3, 2022
aminya pushed a commit that referenced this pull request Jul 3, 2022
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.

1 participant