Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: fix comment typo in events
Add spaces before beginning of comments.
  • Loading branch information
vaibhav93 committed Feb 12, 2016
commit e7dffb01dc85ddda6ea9014317a2e501d4731689
8 changes: 4 additions & 4 deletions test/parallel/test-event-emitter-remove-listeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ function listener4() {
e6.on('hello', listener3);
e6.on('hello', listener4);

//listener4 will still be called although it is removed by listener 3.
// listener4 will still be called although it is removed by listener 3.
e6.emit('hello');
//This is so because the interal listener array at time of emit
//was [listener3,listener4]
// This is so because the interal listener array at time of emit
// was [listener3,listener4]
assert.equal(count, 2);

count = 0;
//Interal listener array [listener3]
// Interal listener array [listener3]
e6.emit('hello');
assert.equal(count, 1);