tracker-base.js 274 B

1234567891011
  1. 'use strict'
  2. var EventEmitter = require('events').EventEmitter
  3. var util = require('util')
  4. var trackerId = 0
  5. var TrackerBase = module.exports = function (name) {
  6. EventEmitter.call(this)
  7. this.id = ++trackerId
  8. this.name = name
  9. }
  10. util.inherits(TrackerBase, EventEmitter)