Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return (el) => {
const showContainer = () => animate(el, `show-${ name }`, noop);
const hideContainer = () => animate(el, `hide-${ name }`, noop);
event.on(EVENT.DISPLAY, showContainer);
event.on(EVENT.CLOSE, hideContainer);
};
};
const onClose = new ZalgoPromise(resolve => {
event.on(EVENT.CLOSE, resolve);
});