4 ms·
This seems pretty complicated and not so simple. Someone else asked, "How is this better than Backbone?" Backbone is (a lot) more than just an event lib. A b
by riskable 12y ago
This seems pretty complicated and not so simple. Someone else asked, "How is this better than Backbone?" Backbone is (a lot) more than just an event lib. A better question would be, "How is this better than OnOff?" (which is basically the equivalent of the events part of Backbone):
https://github.com/LiftoffSoftware/OnOff https://github.com/LiftoffSoftware/OnOff
- modarts 12y agoHow 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.