Skip to content

Commit 0565ed6

Browse files
committed
Remove legacy .once events shim
1 parent 981b434 commit 0565ed6

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/utils.js

-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
var url = require('url');
22
var defaults = require(__dirname + "/defaults");
3-
var events = require('events');
4-
5-
//compatibility for old nodes
6-
if(typeof events.EventEmitter.prototype.once !== 'function') {
7-
events.EventEmitter.prototype.once = function (type, listener) {
8-
var self = this;
9-
self.on(type, function g () {
10-
self.removeListener(type, g);
11-
listener.apply(this, arguments);
12-
});
13-
};
14-
}
153

164
// convert a JS array to a postgres array literal
175
// uses comma separator so won't work for types like box that use

0 commit comments

Comments
 (0)