You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/IoT.js-API-Events.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,8 @@ The following shows Event module APIs available for each platform.
8
8
| emitter.on | O | O | O |
9
9
| emitter.emit | O | O | O |
10
10
| emitter.once | O | O | O |
11
-
| emitter.addListener | O | O | O |
12
11
| emitter.removeListener | O | O | O |
13
-
| emitter.removeAllListener| O | O | O |
12
+
| emitter.removeAllListeners| O | O | O |
14
13
15
14
16
15
# Events
@@ -19,7 +18,7 @@ IoT.js is based on event-driven programming where objects (called "emitters") pe
19
18
20
19
# Class: EventEmitter
21
20
22
-
The `events.EventEmitter` plays a role as base class for "emmitters".
21
+
The `events.EventEmitter` plays a role as base class for "emitters".
23
22
User application would not directly creates an instance of `EventEmitter` since `EventEmitter` is an abstract trait which defines its behavior and grants to sub-classes.
24
23
25
24
### new EventEmitter()
@@ -162,7 +161,7 @@ assert.equal(onceCnt, 1);
162
161
*`args` {any}.
163
162
* Returns `emitter` {events.EventEmitter}.
164
163
165
-
Removes listener from the list of event listeners.
164
+
Removes `listener` from the list of event listeners.
166
165
167
166
If you add the same `listener` multiple times, this removes only one instance of them.
To generate headers which are required to build IoT.js, for the first time, you need to build NuttX at least once. This time NuttX build will be failed. But don't worry at this time. After one execution, you don't need this sequence any more.
0 commit comments