emitter addListener chaining?

21 views
Skip to first unread message

Jacob Rus

unread,
Aug 18, 2009, 10:54:06 PM8/18/09
to NodeJS list
For promise objects, I can chain addCallback and addErrback, as these
return the promise object again, itself. Is there a reason that
similar use isn't possible with generic event emitters, and the
addListener function?

It doesn't really matter, but it seems like the code would be more
consistent if all of these callback registration functions behaved the
same.

Cheers,
Jacob Rus

ry

unread,
Aug 19, 2009, 7:29:16 AM8/19/09
to nodejs
Okay. Easily fixed: b590a45849307f5544b7a95854f45064527105ad.
Reply all
Reply to author
Forward
0 new messages