UNPKG

taggedjs

Version:

tagged template reactive html

9 lines 517 B
import { getSupportInCycle } from '../tag/getSupportInCycle.function.js'; import { Subject } from '../subject/Subject.class.js'; /** Emits event at the end of a tag being rendered. Use tagClosed$.toPromise() to render a tag after a current tag is done rendering */ export const tagClosed$ = new Subject(undefined, function tagCloser(subscription) { if (!getSupportInCycle()) { subscription.next(); // we are not currently processing so process now } }); //# sourceMappingURL=tagClosed$.subject.js.map