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

import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import TinyEmitter from 'tiny-emitter';

var EventBus =
/*#__PURE__*/
function (_TinyEmitter) {
  _inheritsLoose(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);
/**
 * @alias utils/EventBus:eventBus
 */


export default new EventBus();