lib/index.js
function clearAjax() {
  each(function(request) {
    try {
      request.onload = noop;
      request.onerror = noop;
      request.onabort = noop;
      request.onreadystatechange = noop;
      each(function(added) {
        request[added[0]].apply(request, added[1]);
      }, request._queue || []);
      request.abort();
    } catch (e) {
      // Ignore error
    }
  }, requests);
  requests.length = [];
}
function clearAjax() {
  each(function(request) {
    try {
      request.onload = noop;
      request.onerror = noop;
      request.onabort = noop;
      request.onreadystatechange = noop;
      each(function(added) {
        request[added[0]].apply(request, added[1]);
      }, request._queue || []);
      request.abort();
    } catch (e) {
      // Ignore error
    }
  }, requests);
  requests.length = [];
}
function clearAjax ( ) { each ( function ( request ) { try { request . onload = noop ; request . onerror = noop ; request . onabort = noop ; request . onreadystatechange = noop ; each ( function ( added ) { request [ added [ 0 ] ] . apply ( request , added [ 1 ] ) ; } , request . _queue || [ ] ) ; request . abort ( ) ; } catch ( e ) { // Ignore error } } , requests ) ; requests . length = [ ] ; }
Clear all active AJAX requests.

@api public
Clear all active AJAX requests .