'Events' is a module, not an event named 's'

pull/24503/head
isaacs 2012-02-27 11:37:26 -08:00
parent 7bfa5cf284
commit 17db291b5c
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# Events
<!--type=module-->
Many objects in Node emit events: a `net.Server` emits an event each time
a peer connects to it, a `fs.readStream` emits an event when the file is
opened. All objects which emit events are instances of `events.EventEmitter`.

View File

@ -487,7 +487,7 @@ function deepCopy_(src) {
// these parse out the contents of an H# tag
var eventExpr = /^Event:?\s*['"]?([^"']+).*$/i;
var eventExpr = /^Event(?::|\s)+['"]?([^"']+).*$/i;
var classExpr = /^Class:\s*([^ ]+).*?$/i;
var propExpr = /^(?:property:?\s*)?[^\.]+\.([^ \.\(\)]+)\s*?$/i;
var braceExpr = /^(?:property:?\s*)?[^\.\[]+(\[[^\]]+\])\s*?$/i;