Skip to content

Commit

Permalink
0.3.1 - using util.inherits
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Jul 30, 2013
1 parent ad57a19 commit 6b55454
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var fs = require('fs');
var thunky = require('thunky');
var path = require('path');
var EventEmitter = require('events').EventEmitter;
var util = require('util');

var POOL_SIZE = 512*1024;

Expand Down Expand Up @@ -49,7 +50,7 @@ var RandomAccessFile = function(filename, size) {
});
};

RandomAccessFile.prototype.__proto__ = EventEmitter.prototype;
util.inherits(RandomAccessFile, EventEmitter);

RandomAccessFile.prototype.close = function(callback) {
callback = callback || noop;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "random-access-file",
"version": "0.3.0",
"version": "0.3.1",
"repository": "git://github.com/mafintosh/random-access-file",
"license": "MIT",
"description": "Continuous reading or writing to a file using random offsets and lengths",
Expand Down

0 comments on commit 6b55454

Please sign in to comment.