Files
node/lib
James M Snell 0e7d57af35 events: add prependListener() and prependOnceListener()
A handful of modules (including readable-streams) make
inappropriate use of the internal _events property. One
such use is to prepend an event listener to the front
of the array of listeners.

This adds EE.prototype.prependListener() and
EE.prototype.prependOnceListener() methods to add handlers
to the *front* of the listener array.

Doc update and test case is included.

Fixes: https://github.com/nodejs/node/issues/1817
PR-URL: https://github.com/nodejs/node/pull/6032
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
2016-04-22 09:28:37 -07:00
..
2015-10-08 17:32:08 -07:00
2016-01-26 20:53:05 +01:00
2016-03-26 23:46:32 +05:30
2016-03-21 15:48:51 -07:00
2016-04-15 10:36:01 -07:00
2016-04-12 17:21:29 -04:00
2015-01-31 23:47:29 -05:00