The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / lib / events.js @ b0c0111b

History | View | Annotate | Download (7.05 KB)

# Date Author Comment
713b9249 07/12/2012 06:43 PM Nathan Rajlich

Revert "events: don't delete the listeners array in removeListener()"

This reverts commit 928ea564d16da47e615ddac627e0b4d4a40d8196.

Keeping the original Array instance in-place essentially causes a memory leak
on EventEmitters that use an infinite number of event names (an incrementing...

3db2e034 06/17/2012 04:07 PM Maciej Małecki

events: cache `domain` module locally

It's faster than calling `require` every time we create an
`EventEmitter`.

c9a1b5d1 06/14/2012 08:26 PM Reid Burke

Fix #3425: removeAllListeners should delete array

When removeAllListeners is called, the listeners array
is deleted to maintain compatibility with v0.6.

Reverts "events: don't delete the listeners array"

This reverts commit 78dc13fbf97e2e3003e6f3baacdd5ff60e8de3f7....

963459d7 04/17/2012 04:14 PM isaacs

Domain feature

This is a squashed commit of the main work done on the domains-wip branch.

The original commit messages are preserved for posterity:

  • Implicitly add EventEmitters to active domain
  • Implicitly add timers to active domain
  • domain: add members, remove ctor cb...
f065c87b 04/15/2012 09:52 AM Maciej Małecki

events: remove misleading comment

928ea564 03/15/2012 08:01 PM Nathan Rajlich

events: don't delete the listeners array in removeListener()

78dc13fb 03/15/2012 07:20 PM Ben Noordhuis

events: don't delete the listeners array

The documentation implies that .removeAllListeners() leaves the listeners array
untouched. Make it so.

db8940da 02/25/2012 01:37 AM Roly Fentanes

`newListener` emits correct fn when using `once`

Fixes #2826.

22d7fe12 01/08/2012 10:02 PM Ryunosuke SATO

events: fix checking max listeners with `1`

Fixes #2490.

12cf730b 10/29/2011 09:14 PM Siddharth Mahendraker

events: separate maxListeners and _events

Fixes #1479.
Fixes #1923.

4ef8f06f 07/19/2011 04:46 AM Ryan Dahl

Finally remove node::EventEmitter

91f1b250 07/08/2011 08:08 PM Ryan Dahl

mraleph emit hack

85bc8d02 05/16/2011 10:29 PM Ryan Dahl

Merge branch 'v0.4'

Conflicts:
src/node_crypto.cc

80c2fe94 05/14/2011 05:43 PM koichik

Fix event listener leak check timing

Fixes #1041.

bc848958 04/12/2011 05:47 PM Felix Geisendörfer

Allow to remove all EventEmitter listeners at once

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...

bfa9db9d 04/04/2011 02:42 AM Ryan Dahl

Merge branch 'v0.4'

Conflicts:
src/node_version.h
test/simple/test-buffer.js

53bec1c8 03/25/2011 02:51 PM Arnout Kazemier

Added support for removing .once listeners

Closes GH-806.

a4dad95b 03/18/2011 02:18 PM Aaron Heckmann

EventEmitter#once only takes instanceof function

55048cdf 03/14/2011 08:37 PM Ryan Dahl

Update copyright headers

81d3de7e 03/07/2011 04:16 PM Ryan Dahl

setMaxListeners should initialize _events

9da75f39 01/10/2011 04:48 PM Ryan Dahl

Print error when EventEmitters get too many listeners

ca8cc71b 12/30/2010 09:58 PM Daniel C

EventEmitter.prototype.once should "return this;"

09329cbb 12/01/2010 08:43 PM Ryan Dahl

more lint

144b2a53 11/29/2010 08:25 PM Jeremy Martin

Fix number of args emitted by EventEmitter during "fast case" (lte 3 args)

a6ee3bac 10/16/2010 11:43 PM Peteris Krumins

Add EventEmitter.prototype.once

c1aa8ea9 10/11/2010 07:16 PM Micheil Smith

Removed deprecated events.Promise

3d4e4d89 10/06/2010 11:40 PM Joshaven Potter

syntax fixes to pass jslint

e9b6b0b3 10/02/2010 09:44 AM isaacs

Report "weird" errors a little better.

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...

3e0a8f3a 09/16/2010 04:47 PM Herbert Vojčík

Common subexpression in emit.

6bdc42ce 09/15/2010 06:47 PM Ryan Dahl

shorten some lines in events.js

ae8f8e72 09/15/2010 06:20 PM Ryan Dahl

Optimize emit for two arguments

6961bc56 07/15/2010 05:37 PM Ryan Dahl

More instanceof Array fixes

c9e50579 07/12/2010 07:29 PM rick

use delete for removing events after removing the final listener

515dc216 07/03/2010 03:30 AM Ryan Dahl

Experimental: 'on' as alias to 'addListener'

53a9869f 05/14/2010 10:15 PM Jonas Pfenniger

FIX: EventEmitter#removeAllListeners signature

This function should return this is all cases.

fea6f829 05/14/2010 10:13 PM Jonas Pfenniger

FIX: EventEmitter#removeListener logic

In the case of one defined listener, the function should only remove it
if it is the same as the passed listener.

cee90803 04/26/2010 01:44 AM Ryan Dahl

Fix typos

0633e5ca 04/22/2010 08:31 PM Ryan Dahl

Optimize for few args in EventEmitter.emit

6abdf051 04/22/2010 08:22 PM Ryan Dahl

Unhandled 'error' events kill program

By default 'error' throws. addListener to prevent this.

7ff53f4c 04/21/2010 02:38 PM isaacs

Refactor events module to lib/events.js

6befc72f 03/15/2010 05:25 PM Ryan Dahl

Add missing lib/events.js