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

Commit

Permalink
Update remove-event-listener.md
Browse files Browse the repository at this point in the history
Fixing the name of the function
  • Loading branch information
alvarocjunq authored Dec 1, 2021
1 parent 6af2558 commit d08fe31
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 d08fe31

Please sign in to comment.