summaryrefslogtreecommitdiff
path: root/lib/events.js
Commit message (Collapse)AuthorAgeFilesLines
* events: separate maxListeners and _eventsSiddharth Mahendraker2011-10-301-3/+3
| | | | | Fixes #1479. Fixes #1923.
* Finally remove node::EventEmitterRyan Dahl2011-07-191-1/+3
|
* mraleph emit hackRyan Dahl2011-07-081-3/+8
|
* Merge branch 'v0.4'Ryan Dahl2011-05-161-3/+3
|\ | | | | | | | | Conflicts: src/node_crypto.cc
| * Fix event listener leak check timingkoichik2011-05-141-3/+3
| | | | | | | | Fixes #1041.
* | Allow to remove all EventEmitter listeners at onceFelix Geisendörfer2011-04-121-0/+5
| | | | | | | | | | | | | | | | | | This patch adds support for calling EventEmitter#removeAllListeners with no parameters in order to remove all listeners as once. See discussion: https://groups.google.com/forum/#!topic/nodejs-dev/Mcyal1ThTHY Closes GH-889.
* | Merge branch 'v0.4'Ryan Dahl2011-04-031-6/+20
|\ \ | |/ | | | | | | | | Conflicts: src/node_version.h test/simple/test-buffer.js
| * Added support for removing .once listenersArnout Kazemier2011-03-251-6/+20
| | | | | | | | Closes GH-806.
* | EventEmitter#once only takes instanceof functionAaron Heckmann2011-03-181-0/+4
|/
* Update copyright headersRyan Dahl2011-03-141-0/+21
|
* setMaxListeners should initialize _eventsRyan Dahl2011-03-071-0/+1
|
* Print error when EventEmitters get too many listenersRyan Dahl2011-01-101-1/+32
|
* EventEmitter.prototype.once should "return this;"Daniel C2010-12-301-0/+2
|
* more lintRyan Dahl2010-12-011-8/+8
|
* Fix number of args emitted by EventEmitter during "fast case" (lte 3 args)Jeremy Martin2010-11-291-7/+14
|
* Add EventEmitter.prototype.oncePeteris Krumins2010-10-161-1/+9
|
* Removed deprecated events.PromiseMicheil Smith2010-10-111-7/+1
|
* syntax fixes to pass jslintJoshaven Potter2010-10-061-1/+1
|
* Report "weird" errors a little better.isaacs2010-10-021-1/+1
| | | | | | | | | | | | There are a few kinds of errors that are very confusing. 1. Errors raised in nextTick 2. Errors emitted on the "error" event 3. RangeErrors that crash the program (or anything without a stack trace) Long traces will make make these better, of course. In the meantime, this adds a few handy signposts (in the form of better error reporting and comments on the otherwise inscrutable code printed to the terminal) that can help new users find the cause, or at least, ask for help more effectively.
* Common subexpression in emit.Herbert Vojčík2010-09-161-9/+7
|
* shorten some lines in events.jsRyan Dahl2010-09-151-9/+9
|
* Optimize emit for two argumentsRyan Dahl2010-09-151-1/+1
|
* More instanceof Array fixesRyan Dahl2010-07-151-5/+6
|
* use delete for removing events after removing the final listenerrick2010-07-121-1/+3
|
* Experimental: 'on' as alias to 'addListener'Ryan Dahl2010-07-031-0/+1
|
* FIX: EventEmitter#removeAllListeners signatureJonas Pfenniger2010-05-141-2/+2
| | | | This function should return this is all cases.
* FIX: EventEmitter#removeListener logicJonas Pfenniger2010-05-141-1/+1
| | | | | In the case of one defined listener, the function should only remove it if it is the same as the passed listener.
* Fix typosRyan Dahl2010-04-251-1/+1
|
* Optimize for few args in EventEmitter.emitRyan Dahl2010-04-221-6/+15
|
* Unhandled 'error' events kill programRyan Dahl2010-04-221-0/+40
| | | | By default 'error' throws. addListener to prevent this.
* Refactor events module to lib/events.jsisaacs2010-04-211-1/+67
|
* Add missing lib/events.jsRyan Dahl2010-03-151-0/+4