Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from alvarocjunq/patch-1
Browse files Browse the repository at this point in the history
Update remove-event-listener.md
  • Loading branch information
cybergrind authored Dec 1, 2021
2 parents 6af2558 + d08fe31 commit 55be55a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/remove-event-listener.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ class App {

componentDidMount() {
this.rootNodeRef.addEventListener('click', this.handleRootNodeClick)
this.rootNodeRef.addEventListener('clack', handleClickClack)
this.rootNodeRef.addEventListener('clack', handleClack)
}

componentWillUnmount() {
this.rootNodeRef.removeEventListener('click', this.handleRootNodeClick)
this.rootNodeRef.removeEventListener('clack', handleClickClack)
this.rootNodeRef.removeEventListener('clack', handleClack)
}

render() {
Expand Down

0 comments on commit 55be55a

Please sign in to comment.