Commit 33155f1b authored by Arnout Kazemier's avatar Arnout Kazemier

[minor] Change the memcached inheritance pattern #90

parent de44343e
......@@ -3,8 +3,7 @@
/**
* Node's native modules
*/
var EventEmitter = require('events').EventEmitter
, Stream = require('net').Stream
var Stream = require('net').Stream
, Socket = require('net').Socket;
/**
......@@ -58,7 +57,6 @@ function Client (args, options) {
// merge with global and user config
Utils.merge(this, Client.config);
Utils.merge(this, options);
EventEmitter.call(this);
this.servers = servers;
this.HashRing = new HashRing(args, this.algorithm);
......@@ -98,7 +96,9 @@ Client.config = {
, FLAG_BINARY = 1<<2
, FLAG_NUMERIC = 1<<3;
var memcached = nMemcached.prototype = new EventEmitter
nMemcached.prototype.__proto__ = require('events').EventEmitter.prototype;
var memcached = nMemcached.prototype
, privates = {}
, undefined;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment