Skip to content

Is it possible to re-instate the succinct factory method for creating emitters #32

@rudylattae

Description

@rudylattae

I find that having a method that takes care of newing up an emitter is quite handy as it reduces the Getting started surface API. The example below is what used to be available but has been removed from the latest release in dist.

var emitter = LucidJS.emitter();

Will it be possible to get this, or some similar factory back? Just so that users of this library have an alternative to:

var emitter = new LucidJS.EventEmitter();

Not that big a deal, just humbly asking for the option.
Thanks for listening.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions