Skip to content

Commit

Permalink
fixed: events
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Dec 28, 2013
1 parent 9efc623 commit b162768
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var path = require('path');
var util = require('util');
var events = require('events');

var VERSION = 'v2.0.6';
var VERSION = 'v2.0.7';
var STATUS_UNKNOWN = 0;
var STATUS_READING = 1;
var STATUS_WRITING = 2;
Expand Down Expand Up @@ -183,10 +183,14 @@ Database.prototype = {

return new Date(Date.parse(dt.toString()));
}
};

}

Database.prototype.__proto__ = new events.EventEmitter();
Database.prototype.__proto__ = Object.create(events.EventEmitter.prototype, {
constructor: {
value: Database,
enumberable: false
}
});

/*
Insert data into database
Expand Down
Loading

0 comments on commit b162768

Please sign in to comment.