Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added: make `Store` inherit from `EventEmitter`

  • Loading branch information...
commit 1d9731911abf4f1a7b6d395601faf16f94780db9 1 parent 4e2feea
@tj tj authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/middleware/session/store.js
View
9 lib/middleware/session/store.js
@@ -10,7 +10,8 @@
* Module dependencies.
*/
-var Session = require('./session')
+var EventEmitter = require('events').EventEmitter
+ , Session = require('./session')
, Cookie = require('./cookie')
, utils = require('../../utils');
@@ -23,6 +24,12 @@ var Session = require('./session')
var Store = module.exports = function Store(options){};
/**
+ * Inherit from `EventEmitter.prototype`.
+ */
+
+Store.prototype.__proto__ = EventEmitter.prototype;
+
+/**
* Re-generate the given requests's session.
*
* @param {IncomingRequest} req
Please sign in to comment.
Something went wrong with that request. Please try again.