3 ms·
Two thoughts that come to mind when thinking about Pub/Sub libs: a) jQuery has custom events out-of-the-box and code that uses them looks pretty idiomatic (as
by lhorie 15y ago
Two thoughts that come to mind when thinking about Pub/Sub libs:
a) jQuery has custom events out-of-the-box and code that uses them looks pretty idiomatic (as far as jQuery goes anyways)
b) I find that when it comes to fancy complex UIs, the events aren't usually the bottleneck, so I'm not sure why performance optimization for them should be a primary design concern (i.e. to the point of considering including/maintaining one more library).