Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

event handling: this variable and arbitrary data

$
0
0

I'm using can.bind to listen to a can.map's change attribute event.

It is working fine, the event handler function gets called.

However, the "this" variable doesn't seem to point to the can.component in which the event listener function is defined.
Is there a way to overwrite "this" for it to point to the component?

Also, how can custom parameters (function arguments) be passed to the event handler function?
It only seems to support even, newval and oldval.


Viewing all articles
Browse latest Browse all 3491

Trending Articles