HenrikJoreteg / wildemitter

A super lightweight EventEmitter similar to what comes in Node.js, but with a support for wildcard events '*'
MIT License
213 stars 21 forks source link

Allow using groups with once() #3

Closed legastero closed 11 years ago

legastero commented 11 years ago

Prevents handlers being reused across sessions where they're no longer valid.

HenrikJoreteg commented 11 years ago

Nice! Was this causing problems somewhere? I don't quite get what you're saying with "prevents handlers from being reused across sessions".

legastero commented 11 years ago

After disconnecting, any pending once() handlers stick around in the reconnected session but the id event its waiting for wont ever fire because the id sequence has changed.

HenrikJoreteg commented 11 years ago

You mean in stanza io? Or andbang or what?

On Sat, Jun 8, 2013 at 8:06 AM, Lance Stout notifications@github.com wrote:

After disconnecting, any pending once() handlers stick around in the reconnected session but the id event its waiting for wont ever fire because the id sequence has changed.

Reply to this email directly or view it on GitHub: https://github.com/HenrikJoreteg/wildemitter/pull/3#issuecomment-19150090

legastero commented 11 years ago

Stanza.io

HenrikJoreteg commented 11 years ago

Got it, anyway, merging. I'll publish to npm and just add you as an author next time I get on my laptop.