3 ms·
How is OnOff better than just the standard EventEmitter?
by modarts 12y ago
How is OnOff better than just the standard EventEmitter?
- riskable 12y agoYou mean Node.js's EventEmitter? That's not built into JavaScript (i.e. not a "standard"). Anyway, OnOff is better because: 1. It's smaller. 2. It's simpler/less complicated. Also, it doesn't need a noConflict option due to the way it gets instantiated.