You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Remove old emitter style
This commit is contained in:
committed by
Ruben Bridgewater
parent
78187142cb
commit
912b89ca36
@@ -7,11 +7,6 @@ var fs = require('fs');
|
||||
var path = require('path');
|
||||
var util = require('util');
|
||||
|
||||
// Newer Node.js versions > 0.10 return the EventEmitter right away and using .EventEmitter was deprecated
|
||||
if (typeof EventEmitter !== 'function') {
|
||||
EventEmitter = EventEmitter.EventEmitter;
|
||||
}
|
||||
|
||||
function once (cb) {
|
||||
var called = false;
|
||||
return function () {
|
||||
|
Reference in New Issue
Block a user