event code in the docs

is this right? (from http://developer.anscamobile.com/content/events-and-listeners)

local button = display.newImage("button.png")   
   
function button:touch(event)  
 print(event.name.."occurred")  
 return true  
end  
   
button:addEventListener("touch", listener )  

“listener” isn’t defined anywhere [import]uid: 6645 topic_id: 3279 reply_id: 303279[/import]

[lua]local button = display.newImage(“button.png”)

function button:yourTouchListener(event)
print(event.name…“occurred”)
return true
end

button:addEventListener(“touch”, yourTouchListener )[/lua] [import]uid: 5712 topic_id: 3279 reply_id: 9840[/import]

Thanks for noting that, I updated the sample (the code formatting on the page is temporarily broken but will be fixed shortly).

http://developer.anscamobile.com/content/events-and-listeners

Tim [import]uid: 8196 topic_id: 3279 reply_id: 9851[/import]