Closed particlebanana closed 11 years ago
When an event is triggered on the global event emitter the shorthand listeners never get run.
So in a component if I do:
FRAMEWORK.trigger('someevent', { foo: 'bar' });
Then I have shorthand like:
'%someevent': function(obj) { console.log(obj); }
The shorthand will never fire. If I listen for the event using FRAMEWORK.on('someevent', function(obj) {} it gets it.
FRAMEWORK.on('someevent', function(obj) {}
This is a pretty big issue for the current project as there is no way to have event listeners. We have to build up manual event delegators again.
Looks like it works if I emit %someevent. I always forget that!
%someevent
When an event is triggered on the global event emitter the shorthand listeners never get run.
So in a component if I do:
Then I have shorthand like:
The shorthand will never fire. If I listen for the event using
FRAMEWORK.on('someevent', function(obj) {}
it gets it.This is a pretty big issue for the current project as there is no way to have event listeners. We have to build up manual event delegators again.