Browse Source

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

v0.9.1-release
isaacs 13 years ago
parent
commit
5571c1aaa4
  1. 2
      doc/api/events.markdown
  2. 2
      tools/doc/json.js

2
doc/api/events.markdown

@ -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`.

2
tools/doc/json.js

@ -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…
Cancel
Save