diff options
author | Ryan <ry@tinyclouds.org> | 2009-09-12 13:01:03 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-09-12 14:21:37 +0200 |
commit | dbe116ddfe877f49e3f4d61efcad58588864c545 (patch) | |
tree | e41020f8e1fa74548a9c39400315ba0ef5c12e00 /doc/node.1 | |
parent | 97355f3613bb2c64ac2d6058c5ec73a26e1d7fef (diff) | |
download | android-node-v8-dbe116ddfe877f49e3f4d61efcad58588864c545.tar.gz android-node-v8-dbe116ddfe877f49e3f4d61efcad58588864c545.tar.bz2 android-node-v8-dbe116ddfe877f49e3f4d61efcad58588864c545.zip |
API: Change arguments of emit(), emitSuccess(), emitError()
Instead of
myemitter.emit("event", [arg1, arg2, arg3]);
the API is now
myemitter.emit("event", arg1, arg2, arg3);
This change saves the creation of an extra array object for each event.
The implementation is also slightly more simple.
Diffstat (limited to 'doc/node.1')
-rw-r--r-- | doc/node.1 | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/node.1 b/doc/node.1 index b005916643..50cba93d7a 100644 --- a/doc/node.1 +++ b/doc/node.1 @@ -1,11 +1,11 @@ .\" Title: node .\" Author: .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/> -.\" Date: 09/11/2009 +.\" Date: 09/12/2009 .\" Manual: .\" Source: .\" -.TH "NODE" "1" "09/11/2009" "" "" +.TH "NODE" "1" "09/12/2009" "" "" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) @@ -175,11 +175,9 @@ emitter\.listeners(event) Returns an array of listeners for the specified event\. This array can be manipulated, e\.g\. to remove listeners\. .RE .PP -emitter\.emit(event, args) +emitter\.emit(event, arg1, arg2, \&...) .RS 4 -Execute each of the listeners in order with the array -args -as arguments\. +Execute each of the listeners in order with the supplied arguments\. .RE .RE .sp |