ajax-manager
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "ajax-manager", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "An jQuery ajax management tool", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
// use global count instead of jquery global event because it does't support cross domain request | ||
window.__apiCount__ = 0 | ||
let apiCounter = { | ||
window.__apiCounter = { | ||
add () { | ||
@@ -153,3 +153,3 @@ window.__apiCount__++ | ||
if (triggerAjaxStartAndStopEvent) { | ||
apiCounter.add() | ||
window.__apiCounter.add() | ||
fireStartAndStopEvents('ajaxStart', [xhr]) | ||
@@ -170,3 +170,3 @@ } | ||
if (triggerAjaxStartAndStopEvent) { | ||
apiCounter.remove() | ||
window.__apiCounter.remove() | ||
fireStartAndStopEvents('ajaxStop', [xhr, statusText]) | ||
@@ -173,0 +173,0 @@ } |
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
14377