summaryrefslogtreecommitdiffstats
path: root/notes.txt
diff options
context:
space:
mode:
Diffstat (limited to 'notes.txt')
-rw-r--r--notes.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/notes.txt b/notes.txt
index 3873d42..886fc00 100644
--- a/notes.txt
+++ b/notes.txt
@@ -11,3 +11,10 @@ $ jslint --sloppy --white <file.js>
var foo = [1, 2, 3];
var bar = foo.slice(0);
+- an object that listen for event must be subclass of
+ of events.EventEmitter, e.g. http.createServer()
+
+ I'm an eventer, I will emit events, and have a list of
+ who responds/listens to those, so we will see statements
+ such eventer.on('foo', somehandler)
+