3 ms·
I meant to write EventTarget API. Yep. However, the implication is that it’s based on the DOM event model. So, for example, you have three stage processing: 1)
by deno 14y ago
I meant to write EventTarget API. Yep.
However, the implication is that it’s based on the DOM event model. So, for example, you have three stage processing: 1) capture phase, 2) target phase, and 3) bubble phase. YUI 3 has its own API, but they still follow that model. This is a bit stronger contract than just your generic ‘EventEmitter,’ which only implies a simple observer model.