Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

expected behavior with substring event names? #63

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

expected behavior with substring event names? #63

khrome opened this issue Oct 25, 2013 · 1 comment

Comments

@khrome
Copy link

khrome commented Oct 25, 2013

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
Copy link
Author

khrome commented Oct 25, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant