mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
JS: Remove unsafe usage of X.prototype = new Y;
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
// var network = require("./network.js");
|
||||
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
var util = require('util');
|
||||
|
||||
var Amount = require('./amount').Amount;
|
||||
var UInt160 = require('./uint160').UInt160;
|
||||
var Currency = require('./currency').Currency;
|
||||
@@ -18,6 +20,8 @@ var extend = require('extend');
|
||||
var OrderBook = function (remote,
|
||||
currency_gets, issuer_gets,
|
||||
currency_pays, issuer_pays) {
|
||||
EventEmitter.call(this);
|
||||
|
||||
var self = this;
|
||||
|
||||
this._remote = remote;
|
||||
@@ -70,7 +74,7 @@ var OrderBook = function (remote,
|
||||
return this;
|
||||
};
|
||||
|
||||
OrderBook.prototype = new EventEmitter;
|
||||
util.inherits(OrderBook, EventEmitter);
|
||||
|
||||
/**
|
||||
* List of events that require a remote subscription to the orderbook.
|
||||
|
||||
Reference in New Issue
Block a user