mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-02-27 15:49:03 +00:00
remove new
trick for non-exported function
This commit is contained in:
parent
5064a05dde
commit
94ae74b32d
1
index.js
1
index.js
@ -34,7 +34,6 @@ inherits(Tracker, EventEmitter)
|
|||||||
*/
|
*/
|
||||||
function Tracker (client, announceUrl, interval, opts) {
|
function Tracker (client, announceUrl, interval, opts) {
|
||||||
var self = this
|
var self = this
|
||||||
if (!(self instanceof Tracker)) return new Tracker(client, announceUrl, interval, opts)
|
|
||||||
EventEmitter.call(self)
|
EventEmitter.call(self)
|
||||||
self._opts = opts || {}
|
self._opts = opts || {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user