4 ms·
Can the JavaScript elite please get together and make a decision on Backbone.Events vs. EventEmitter vs. EventTarget? Also, I recommend everyone read TJ Holowa
by MatthewPhillips 14y ago
Can the JavaScript elite please get together and make a decision on Backbone.Events vs. EventEmitter vs. EventTarget?
Also, I recommend everyone read TJ Holowaychuck's latest blog post[1] and lets start distributing these types of things as components instead of "frameworks".
[1]http://tjholowaychuk.com/post/27984551477/components http://tjholowaychuk.com/post/27984551477/components
- lobo_tuerto 14y agoWhat is the decision to be made? could you explain a little?
- MatthewPhillips 14y agoThese are 3 implementations of the same thing. I can imagine there are people using Backbone, YUI, and EventEmitter. Oh, and they might be using some other library which shims the EventTarget interface and uses CustomEvent objects. Read the Holowaychuk article. We need to stop working with frameworks and start working with components. How great would it be of I could use Backbone without Events (not picking on Backbone.Events here, just an example), or use a JQuery function that one of my libraries requires without including all 32k of it.