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

Rebind on() with live template

$
0
0
hi guys.

a have a problem with can.Control

here is jsfiddle: http://jsfiddle.net/84hRB/4/

i use live templating with can.Mustache

i have some offers to display. via ajax i get json objecs that i push into can.List.

i want to catch events on the .offer Class that mustache append.

i found .on(), but this method does not rebinding on the .offer objects.

in jsfiddle you can see, after i pushed some offers into can.List the click event will not be fired.

do i missunderstand the doc? or what is wrong?

thanks for help

Viewing all articles
Browse latest Browse all 3491

Trending Articles