Files
node/doc/api
James M Snell aa53bf2faa 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-26 12:16:33 -07:00
..
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00
2016-04-26 12:16:28 -07:00