'Events' is a module, not an event named 's'
This commit is contained in:
parent
7bfa5cf284
commit
17db291b5c
@ -1,5 +1,7 @@
|
|||||||
# Events
|
# Events
|
||||||
|
|
||||||
|
<!--type=module-->
|
||||||
|
|
||||||
Many objects in Node emit events: a `net.Server` emits an event each time
|
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
|
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`.
|
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
|
// 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 classExpr = /^Class:\s*([^ ]+).*?$/i;
|
||||||
var propExpr = /^(?:property:?\s*)?[^\.]+\.([^ \.\(\)]+)\s*?$/i;
|
var propExpr = /^(?:property:?\s*)?[^\.]+\.([^ \.\(\)]+)\s*?$/i;
|
||||||
var braceExpr = /^(?:property:?\s*)?[^\.\[]+(\[[^\]]+\])\s*?$/i;
|
var braceExpr = /^(?:property:?\s*)?[^\.\[]+(\[[^\]]+\])\s*?$/i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user