Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 6201706

Browse files
committed
Update Stream.coffee
1 parent de910eb commit 6201706

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/Stream.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ module.factory 'Stream', () ->
2424
data = listener(data, changeData) || data
2525

2626
for childStream in @children
27-
childStream(data)
27+
childStream.push(data)
2828

2929
destroy: ->
3030
@listeners = []
31+
@children = []
3132

3233
# Events from this stream will then go into the passed stream
3334
child: (stream) ->

0 commit comments

Comments
 (0)