/**
 * @module utils/EventBus
 */
'use strict';

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

exports.__esModule = true;
exports.default = void 0;

var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));

var _tinyEmitter = _interopRequireDefault(require("tiny-emitter"));

var EventBus =
/*#__PURE__*/
function (_TinyEmitter) {
  (0, _inheritsLoose2.default)(EventBus, _TinyEmitter);

  function EventBus() {
    return _TinyEmitter.apply(this, arguments) || this;
  }

  var _proto = EventBus.prototype;

  _proto.emit = function emit(name) {
    // uncomment lines below for debug info
    // var data = [].slice.call(arguments, 1);
    // console.log("Event: [" + name + "]" + (data !== undefined ? " -> " + JSON.stringify(data) : ""));
    _TinyEmitter.prototype.emit.apply(this, arguments);
  };

  return EventBus;
}(_tinyEmitter.default);
/**
 * @alias utils/EventBus:eventBus
 */


var _default = new EventBus();

exports.default = _default;