resources/assets/js/requests-monitor.js
/**
     * Check for pending requests in queue or specific container.
     *
     * @param container
     * @returns {boolean}
     * @private
     */
Check for pending requests in queue or specific container.
@param container
@returns {boolean}
@private
Check for pending requests in queue or specific container . @param container @returns { boolean } @private
_hasPendingRequests(container) {
        if(container) {
            return this.queue[container].length > 0;
        } else {
            let hasRequests = false;
            for (let type in this.queue) {
                if (this.queue.hasOwnProperty(type)) {
                    if (this.queue[type].length > 0) {
                        hasRequests = true;
                        break;
                    }
                }
            }
            return hasRequests;
        }
    }
_hasPendingRequests ( container ) { if ( container ) { return this . queue [ container ] . length > 0 ; } else { let hasRequests = false ; for ( let type in this . queue ) { if ( this . queue . hasOwnProperty ( type ) ) { if ( this . queue [ type ] . length > 0 ) { hasRequests = true ; break ; } } } return hasRequests ; } }
Check for pending requests in queue or specific container.
Check for pending requests in queue or specific container .