fixed documentation event listener example

the parameter wasn't correctly implemented