Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

expected behavior with substring event names? #63

Closed
khrome opened this Issue · 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.