Skip to content
Browse files

Change new to Object.Create in hstream for more ES5

  • Loading branch information...
1 parent b143325 commit 698191dd1e9b553cb9dccc8b42ae2d8827de5c08 @akaspin committed Aug 4, 2010
Showing with 7 additions and 7 deletions.
  1. +7 −7 hstream.js
View
14 hstream.js
@@ -137,13 +137,13 @@ function HStream() {
this.root = new Chunk(this, undefined, undefined);
this.closed = false;
}
-HStream.prototype = new events.EventEmitter;
-//HStream.prototype = Object.create(events.EventEmitter.prototype, {
-// constructor: {
-// value: HStream,
-// enumerable: false
-// }
-//});
+//HStream.prototype = new events.EventEmitter;
+HStream.prototype = Object.create(events.EventEmitter.prototype, {
+ constructor: {
+ value: HStream,
+ enumerable: false
+ }
+});
exports.HStream = HStream;
/**

0 comments on commit 698191d

Please sign in to comment.
Something went wrong with that request. Please try again.