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
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