mirror of https://github.com/nodejs/node.git
'Events' is a module, not an event named 's'
parent
7bfa5cf284
commit
17db291b5c
|
@ -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`.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue