Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
publicocean0 authored Jul 24, 2017
1 parent 8915358 commit e711392
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ offRemoval(el) // you can pass directly the callback to remove
DOM node callback
This is a utility callback for detecting when a dom node is removed.
<pre>
el.addListener('removal',function(el){
el.addEventListener('removal',function(el){
console.log('removing1')
})
el.addListener('removal',function(el){
el.addEventListener('removal',function(el){
console.log('executing ....')
})

el.removeListener('removal') // you can pass directly the callback to remove
el.removeEventListener('removal') // you can pass directly the callback to remove


</pre>

0 comments on commit e711392

Please sign in to comment.