Tag Info

New answers tagged

0

I have decided to re-implement the solution using Node Streams, rather than simple events, allowing me to use pipe().


5

In general, no. Event listeners should not be called if they are attached after the event has already fired. "You snooze, you lose." There are some important exceptions. $(document).ready() is perhaps the perfect example--a event prior to which the entire evaluation context is not reliably or completely established, and which serves as a "full function ...


17

That depends upon whether it is really an Event or State Notification (which is what ready is). If it is an event, then you don't tell the listener about all prior events. If it is State Notification, then you tell them immediately after they have subscribed and you are in the specified state. The tricky bit will be where it can be either a state or an ...



Top 50 recent answers are included