Skip to content

Commit

Permalink
add setEncoding()
Browse files Browse the repository at this point in the history
  • Loading branch information
shinout committed Feb 17, 2012
1 parent 1811c1b commit d21fc18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/delayed_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ DelayedStream.prototype.__defineGetter__('readable', function() {
return this.source.readable;
});

DelayedStream.prototype.setEncoding = function() {
return this.source.setEncoding.apply(this.source, arguments);
};

DelayedStream.prototype.resume = function() {
if (!this._released) {
this.release();
Expand Down

0 comments on commit d21fc18

Please sign in to comment.