Permalink
Browse files

Fix long line in buffertools.js

  • Loading branch information...
1 parent 83bf5b0 commit 02c9433cc3158acf5871a248e7b122e896b3f6e5 @bnoordhuis committed Jun 23, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 buffertools.js
View
@@ -7,8 +7,11 @@ events = require('events');
util = require('util');
// extend object prototypes
-for (var property in buffertools) {
- exports[property] = Buffer.prototype[property] = SlowBuffer.prototype[property] = buffertools[property];
+for (var key in buffertools) {
+ var val = buffertools[key];
+ SlowBuffer.prototype[key] = val;
+ Buffer.prototype[key] = val;
+ exports[key] = val;
}
// bug fix, see https://github.com/bnoordhuis/node-buffertools/issues/#issue/6

0 comments on commit 02c9433

Please sign in to comment.