Permalink
Browse files

Adding end(chunk) support.

  • Loading branch information...
1 parent 4c1a91f commit e05a0142b04cf558a9951fa044f3b7d58c604554 @mikeal committed Oct 31, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 main.js
View
3 main.js
@@ -179,7 +179,8 @@ File.prototype.write = function (chunk, encoding) {
this.emit('data', chunk)
}
}
-File.prototype.end = function () {
+File.prototype.end = function (chunk) {
+ if (chunk) this.write(chunk)
if (this.buffering) {
this.ended = true
} else {

0 comments on commit e05a014

Please sign in to comment.