Permalink
Browse files

emit data, whoops

  • Loading branch information...
1 parent 78023fb commit aeb9be941367bb746ca3d8b53294b3c3a3c0b7f2 @substack committed Feb 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -108,7 +108,7 @@ exports.stringify = function (op, sep, cl) {
return
ended = true
if(data) stream.write(data)
- if(!anyData) stream.write(op)
+ if(!anyData) stream.emit('data', op)
stream.emit('data', cl)
stream.emit('end')

0 comments on commit aeb9be9

Please sign in to comment.