خرید بک لینک

Vote count: 0

There are a minimum of three methods for an event emitter class: one to add an event listener, one to remove an existing event listener, and one to fire an event.

jQuery uses on, off, and trigger.

node.js's EventEmitter uses on, remove, and emit.

I've also seen bind/unbind, addEventListener/removeEventListener, as well as fire. I've personally used on/off and fire because I find those to be simple and concise.

What's the most commonly used names for these to avoid confusion?

asked 41 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 26 فروردين 1395 ساعت: 7:56

صفحه بندی