jsuites 4.9.36 → 4.9.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = function(options) {
19
19
  var obj = {}
20
- var version = '4.9.36';
20
+ var version = '4.9.27';
21
21
 
22
22
  var find = function(DOMElement, component) {
23
23
  if (DOMElement[component.type] && DOMElement[component.type] == component) {
@@ -342,6 +342,10 @@ jSuites.ajax = (function(options, complete) {
342
342
  jSuites.ajax.beforeSend(httpRequest);
343
343
  }
344
344
 
345
+ if (document.ajax && typeof(document.ajax.beforeSend) == 'function') {
346
+ document.ajax.beforeSend(httpRequest);
347
+ }
348
+
345
349
  httpRequest.onload = function() {
346
350
  if (httpRequest.status === 200) {
347
351
  if (options.dataType == 'json') {
package/dist/jsuites.js CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = function(options) {
19
19
  var obj = {}
20
- var version = '4.9.36';
20
+ var version = '4.9.37';
21
21
 
22
22
  var find = function(DOMElement, component) {
23
23
  if (DOMElement[component.type] && DOMElement[component.type] == component) {
@@ -342,6 +342,10 @@ jSuites.ajax = (function(options, complete) {
342
342
  jSuites.ajax.beforeSend(httpRequest);
343
343
  }
344
344
 
345
+ if (document.ajax && typeof(document.ajax.beforeSend) == 'function') {
346
+ document.ajax.beforeSend(httpRequest);
347
+ }
348
+
345
349
  httpRequest.onload = function() {
346
350
  if (httpRequest.status === 200) {
347
351
  if (options.dataType == 'json') {
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "javascript plugins"
20
20
  ],
21
21
  "main": "dist/jsuites.js",
22
- "version": "4.9.36",
22
+ "version": "4.9.37",
23
23
  "bugs": "https://github.com/jsuites/jsuites/issues",
24
24
  "homepage": "https://github.com/jsuites/jsuites",
25
25
  "docs": "https://jsuites.net",