Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var endListener = function (e) {
if (e && e.target !== node) {
return;
}
clearTimeout(timeout);
CSSCore.removeClass(node, className);
CSSCore.removeClass(node, activeClassName);
ReactTransitionEvents.removeEndEventListener(node, endListener);
// Usually this optional callback is used for informing an owner of
// a leave animation and telling it to remove the child.
if (finishCallback) {
finishCallback();
}
};
var endListener = function (e) {
if (e && e.target !== node) {
return;
}
clearTimeout(timeout);
CSSCore.removeClass(node, className);
CSSCore.removeClass(node, activeClassName);
ReactTransitionEvents.removeEndEventListener(node, endListener);
// Usually this optional callback is used for informing an owner of
// a leave animation and telling it to remove the child.
if (finishCallback) {
finishCallback();
}
};
var endListener = function (e) {
if (e && e.target !== node) {
return;
}
clearTimeout(timeout);
CSSCore.removeClass(node, className);
CSSCore.removeClass(node, activeClassName);
ReactTransitionEvents.removeEndEventListener(node, endListener);
// Usually this optional callback is used for informing an owner of
// a leave animation and telling it to remove the child.
if (finishCallback) {
finishCallback();
}
};
var endListener = function(e) {
if (e && e.target !== node) {
return;
}
clearTimeout(timeout);
CSSCore.removeClass(node, className);
CSSCore.removeClass(node, activeClassName);
ReactTransitionEvents.removeEndEventListener(node, endListener);
// Usually this optional callback is used for informing an owner of
// a leave animation and telling it to remove the child.
if (finishCallback) {
finishCallback();
}
};
var endListener = function (e) {
if (e && e.target !== node) {
return;
}
clearTimeout(timeout);
CSSCore.removeClass(node, className);
CSSCore.removeClass(node, activeClassName);
ReactTransitionEvents.removeEndEventListener(node, endListener);
// Usually this optional callback is used for informing an owner of
// a leave animation and telling it to remove the child.
if (finishCallback) {
finishCallback();
}
};
setTimeout(() => {
CSSCore.removeClass(node, className);
CSSCore.removeClass(node, activeClassName);
}, delay);
}
setTimeout(() => {
CSSCore.removeClass(node, className);
CSSCore.removeClass(node, activeClassName);
}, delay);
}
_removeConfirm = () => {
this.isHiding = false;
this.props.hideConfirm();
const body = document.querySelector('body');
CSSCore.removeClass(this.confirm, 'bounceOutUp');
CSSCore.removeClass(this.confirm, 'bounceInDown');
CSSCore.removeClass(body, 'toastr-confirm-active');
};
_clearTransition = () => {
const node = this.toastrBox;
CSSCore.removeClass(node, this.transitionIn);
CSSCore.removeClass(node, this.transitionOut);
};
_removeConfirm = () => {
this.isHiding = false;
this.props.hideConfirm();
const body = document.querySelector('body');
CSSCore.removeClass(this.confirm, 'bounceOutUp');
CSSCore.removeClass(this.confirm, 'bounceInDown');
CSSCore.removeClass(body, 'toastr-confirm-active');
};