react-redux-toastr
Advanced tools
Comparing version 7.4.6 to 7.4.7
@@ -40,2 +40,15 @@ "use strict"; | ||
function createNewEvent(eventName) { | ||
var event; | ||
if (typeof Event === 'function') { | ||
event = new Event(eventName); | ||
} else { | ||
event = document.createEvent('Event'); | ||
event.initEvent(eventName, true, true); | ||
} | ||
return event; | ||
} | ||
function isString(obj) { | ||
@@ -138,3 +151,3 @@ if (typeof obj == 'string') { | ||
var timeoutId = setTimeout(function () { | ||
var e = new Event(animationEnd); | ||
var e = createNewEvent(animationEnd); | ||
toastrWarn('The toastr box was closed automatically, please check \'transitionOut\' prop value'); | ||
@@ -141,0 +154,0 @@ node.dispatchEvent(e); |
{ | ||
"name": "react-redux-toastr", | ||
"version": "7.4.6", | ||
"version": "7.4.7", | ||
"description": "react-redux-toastr is a React toastr message implemented with Redux", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -21,2 +21,13 @@ import config from './config'; | ||
function createNewEvent(eventName) { | ||
var event; | ||
if (typeof (Event) === 'function') { | ||
event = new Event(eventName); | ||
} else { | ||
event = document.createEvent('Event'); | ||
event.initEvent(eventName, true, true); | ||
} | ||
return event; | ||
} | ||
function isString(obj) { | ||
@@ -104,3 +115,3 @@ if (typeof obj == 'string') { | ||
const timeoutId = setTimeout(function() { | ||
const e = new Event(animationEnd); | ||
const e = createNewEvent(animationEnd); | ||
toastrWarn('The toastr box was closed automatically, please check \'transitionOut\' prop value'); | ||
@@ -107,0 +118,0 @@ node.dispatchEvent(e); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
150227
2493