Browse Source

clean up options.end code - wasn't working

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
8ab691726d
  1. 4
      lib/stream.js

4
lib/stream.js

@ -23,9 +23,7 @@ Stream.prototype.pipe = function (dest, options) {
* source gets the 'end' event. * source gets the 'end' event.
*/ */
options.end = options && options.end === false ? false : true; if (!options || options.end === false) {
if (options.end) {
source.on("end", function () { source.on("end", function () {
dest.end(); dest.end();
}); });

Loading…
Cancel
Save