Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

function(el,ev) what does it mean?

Tags:

canjs

when i have something like this

".mylabel click": function (el,ev){
//mycode in here 
}

what does el mean? what does ev mean?

I have tried searching it in canjs, but there isn't enough information.

like image 585
mess Avatar asked Jul 26 '13 21:07

mess


1 Answers

Typically, el would be the element that received the click event. ev is the actual click event itself which would tell you if the user clicked with the right mouse button or left mouse button...etc.

like image 56
Ralph Caraveo Avatar answered Jan 03 '23 10:01

Ralph Caraveo