-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
Listener and Publisher methods cannot act as proper mixins, as they rely on certain contextual variables– for example, publishers have a this.emitter and listeners have this.subscriptions.
Suggestions are,
- To privatize contextual variables (see Use of 'subscriptions' variable refluxjs#442).
- Extend the publisher directly from the event-emitter class.
- To turn the mixin-style methods into constructors with prototypes.
- In turn allow
createStore()andcreateAction()to be used as classes (i.e.new Reflux.Store(),new Reflux.Action()) (see Support ES6/TypeScript classes in Stores and Action types refluxjs#444).
Reactions are currently unavailable