Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Remove legacy .once events shim #562

merged 1 commit into from

2 participants


As I was taking a look through the new utils.js, I noticed that the shim for once was still around. As the dependency is now >= 0.8, I assume this can be safely removed?


You're absolutely right! Thank you!!! :dancers: :smile:

@brianc brianc merged commit 7442ea9 into brianc:master

1 check passed

Details continuous-integration/travis-ci The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2014
  1. @tgriesser
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 12 deletions.
  1. +0 −12 lib/utils.js
12 lib/utils.js
@@ -1,17 +1,5 @@
var url = require('url');
var defaults = require(__dirname + "/defaults");
-var events = require('events');
-//compatibility for old nodes
-if(typeof events.EventEmitter.prototype.once !== 'function') {
- events.EventEmitter.prototype.once = function (type, listener) {
- var self = this;
- self.on(type, function g () {
- self.removeListener(type, g);
- listener.apply(this, arguments);
- });
- };
// convert a JS array to a postgres array literal
// uses comma separator so won't work for types like box that use
Something went wrong with that request. Please try again.