flatiron/union — Issue #1: Piping response fails
Author: mmalecki
Created: 2011-11-09 18:25:45+00:00
State: open

Run the example, request `locahost:8080`. You'll get this:

```

union with sugarskull running on 8080

events.js:148
throw new Error('.once only takes instances of Function');
^
Error: .once only takes instances of Function
at [object Object].once (events.js:148:11)
at new (/Users/maciej/Programowanie/JavaScript/union/lib/response-stream.js:23:8)
at new (/Users/maciej/Programowanie/JavaScript/union/lib/routing-stream.js:25:17)
at Server. (/Users/maciej/Programowanie/JavaScript/union/lib/core.js:26:25)
at Server.emit (events.js:70:17)
at HTTPParser.onIncoming (http.js:1479:12)
at HTTPParser.onHeadersComplete (http.js:102:31)
at Socket.ondata (http.js:1375:22)
at TCP.onread (net.js:334:27)
```