"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.addListener = addListener;exports.emit = emit;var _eventemitter = _interopRequireDefault(require("eventemitter3"));

var emitterCache;
function getEmitter() {
  if (!emitterCache) {
    emitterCache = new _eventemitter.default();
  }
  return emitterCache;
}

function addListener(callback) {
  var emitter = getEmitter();
  emitter.addListener('CalendarScroll', callback);
  return {
    remove: function remove() {
      emitter.removeListener('CalendarScroll', callback);
    }
  };
}

function emit() {
  getEmitter().emit('CalendarScroll');
}