expected behavior with substring event names? #63

Closed
khrome opened this Issue Oct 25, 2013 · 1 comment

1 participant

@khrome

let's say I used:

emitter.on('fetch', fetch);
emitter.on('fetchReturn', fetchReturnHandler);

and then:

emitter.emitEvent('fetchReturn', ... );

Is it expected behavior for both listeners to fire? because that's happening for me due to this.getListenersAsObject('fetchReturn'); returning both.

@khrome

Nevermind, this was an object which had a toString handler, so it was outputting as a string, but wasn't... leaving it here for the next guy who has a similar issue.

@khrome khrome closed this Oct 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment