index.js 759 B

12345678910111213141516
  1. function $parcel$export(e, n, v, s) {
  2. Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
  3. }
  4. $parcel$export(module.exports, "composeEventHandlers", () => $1a6a90a521dcd173$export$b9ecd428b558ff10);
  5. function $1a6a90a521dcd173$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
  6. return function handleEvent(event) {
  7. originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
  8. if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
  9. };
  10. }
  11. //# sourceMappingURL=index.js.map