addon-test-support/@ember/test-helpers/settled.js
/**
  Clears listeners that were previously setup for `ajaxSend` and `ajaxComplete`.

  @private
*/
Clears listeners that were previously setup for `ajaxSend` and `ajaxComplete`.
Clears listeners that were previously setup for ` ajaxSend ` and ` ajaxComplete ` .
function _teardownAJAXHooks() {
  requests = [];
  if (!jQuery) {
    return;
  }
  jQuery(document).off('ajaxSend', incrementAjaxPendingRequests);
  jQuery(document).off('ajaxComplete', decrementAjaxPendingRequests);
}
function _teardownAJAXHooks ( ) { requests = [ ] ; if ( ! jQuery ) { return ; } jQuery ( document ) . off ( 'ajaxSend' , incrementAjaxPendingRequests ) ; jQuery ( document ) . off ( 'ajaxComplete' , decrementAjaxPendingRequests ) ; }
Clears listeners that were previously setup for `ajaxSend` and `ajaxComplete`.
Clears listeners that were previously setup for ` ajaxSend ` and ` ajaxComplete ` .
// jQuery will not invoke `ajaxComplete` if //    1. `transport.send` throws synchronously and //    2. it has an `error` option which also throws synchronously // We can no longer handle any remaining requests