All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.MarkedEvents.js.map Maven / Gradle / Ivy

{"version":3,"file":"MarkedEvents.js","sourceRoot":"","sources":["../src/MarkedEvents.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG,IAAI,OAAO,EAAiB,CAAC;AAElD;;GAEG;AACH,MAAM,SAAS,GAAG,CAAC,KAAY,EAAE,KAAa,EAAE,EAAE;IACjD,YAAY,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAChC,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,YAAY,GAAG,CAAC,KAAY,EAAsB,EAAE;IACzD,OAAO,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC,CAAC;AAEF,OAAO,EACN,SAAS,EACT,YAAY,GACZ,CAAC","sourcesContent":["const markedEvents = new WeakMap();\n\n/**\n * Marks the given event with random marker.\n */\nconst markEvent = (event: Event, value: string) => {\n\tmarkedEvents.set(event, value);\n};\n\n/**\n * Returns the marker for the given event.\n */\nconst getEventMark = (event: Event): string | undefined => {\n\treturn markedEvents.get(event);\n};\n\nexport {\n\tmarkEvent,\n\tgetEventMark,\n};\n"]}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy