const bindEvent = (element, eventName, eventHandler) => {
  if (element.addEventListener) {
    element.addEventListener(eventName, eventHandler, false);
  } else if (element.attachEvent) {
    element.attachEvent(`on${eventName}`, eventHandler);
  }
};
const removeEvent = (element, eventName, eventHandler) => {
  if (element.removeEventListener) {
    element.removeEventListener(eventName, eventHandler);
  } else if (element.detachEvent) {
    element.detachEvent(`on${eventName}`, eventHandler);
  }
};
export {
  bindEvent,
  removeEvent
};
