using soop for inheritance
This commit is contained in:
parent
ebec07c050
commit
5cc98a4595
@ -3,9 +3,9 @@ var imports = require('soop').imports();
|
|||||||
var parent = imports.parent || require('events').EventEmitter;
|
var parent = imports.parent || require('events').EventEmitter;
|
||||||
var EventEmitter = require('events').EventEmitter;
|
var EventEmitter = require('events').EventEmitter;
|
||||||
var dns = require('dns');
|
var dns = require('dns');
|
||||||
var inherits = require('util').inherits;
|
|
||||||
|
|
||||||
function SeedList(options) {
|
function SeedList(options) {
|
||||||
|
SeedList.super(this, arguments);
|
||||||
this.options = options || {};
|
this.options = options || {};
|
||||||
this.sources = [
|
this.sources = [
|
||||||
'dnsseed.bluematt.me',
|
'dnsseed.bluematt.me',
|
||||||
@ -19,7 +19,7 @@ function SeedList(options) {
|
|||||||
this.find()
|
this.find()
|
||||||
};
|
};
|
||||||
|
|
||||||
inherits(SeedList, EventEmitter);
|
SeedList.parent = imports.parent || EventEmitter;
|
||||||
|
|
||||||
SeedList.prototype.find = function() {
|
SeedList.prototype.find = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user