From 5cc98a459525300d626324ac3c7b264c4d3e66cb Mon Sep 17 00:00:00 2001 From: Gordon Hall Date: Wed, 19 Mar 2014 16:13:42 -0400 Subject: [PATCH] using soop for inheritance --- SeedList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SeedList.js b/SeedList.js index b90ad88..05ea63a 100644 --- a/SeedList.js +++ b/SeedList.js @@ -3,9 +3,9 @@ var imports = require('soop').imports(); var parent = imports.parent || require('events').EventEmitter; var EventEmitter = require('events').EventEmitter; var dns = require('dns'); -var inherits = require('util').inherits; function SeedList(options) { + SeedList.super(this, arguments); this.options = options || {}; this.sources = [ 'dnsseed.bluematt.me', @@ -19,7 +19,7 @@ function SeedList(options) { this.find() }; -inherits(SeedList, EventEmitter); +SeedList.parent = imports.parent || EventEmitter; SeedList.prototype.find = function() { var self = this;