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

can.observe.delegate doesn't look up the controller's option

$
0
0
Here's a JSfiddle to explain the issue:
http://jsfiddle.net/j6yer/

Basically, a templated event which refers to an object works when the object is in the global object (window), but not if it's only in the controller option.

Did I miss something ? Also, i suppose it's the same issue with models events when the models are not defined in the global object (I am using requireJS and try not to put my stuff in the global scope).

Thanks

Viewing all articles
Browse latest Browse all 3491

Trending Articles