src/aria/core/IOFiltersMgr.js
function (isResponse, request, cb) {
                if (!this._filters) {
                    this.$callback(cb);
                    return;
                }
                var args = {
                    isResponse : isResponse,
                    request : request,
                    cb : cb,
                    filters : this._filters,
                    nbFilters : this._filters.length
                    // store the number of filters so that we do not call filters which were added after the call
                    // to _callFilters
                };
                if (this._filtersToBeLoaded > 0
                        && (request.sender == null || request.sender.classpath != "aria.core.FileLoader")) {
                    this._loadMissingFilters({
                        fn : this._continueCallingFilters,
                        args : args,
                        scope : this
                    });
                } else {
                    this._continueCallingFilters(null, args);
                }
            }
function (isResponse, request, cb) {
                if (!this._filters) {
                    this.$callback(cb);
                    return;
                }
                var args = {
                    isResponse : isResponse,
                    request : request,
                    cb : cb,
                    filters : this._filters,
                    nbFilters : this._filters.length
                    // store the number of filters so that we do not call filters which were added after the call
                    // to _callFilters
                };
                if (this._filtersToBeLoaded > 0
                        && (request.sender == null || request.sender.classpath != "aria.core.FileLoader")) {
                    this._loadMissingFilters({
                        fn : this._continueCallingFilters,
                        args : args,
                        scope : this
                    });
                } else {
                    this._continueCallingFilters(null, args);
                }
            }
function ( isResponse , request , cb ) { if ( ! this . _filters ) { this . $callback ( cb ) ; return ; } var args = { isResponse : isResponse , request : request , cb : cb , filters : this . _filters , nbFilters : this . _filters . length // store the number of filters so that we do not call filters which were added after the call // to _callFilters } ; if ( this . _filtersToBeLoaded > 0 && ( request . sender == null || request . sender . classpath != "aria.core.FileLoader" ) ) { this . _loadMissingFilters ( { fn : this . _continueCallingFilters , args : args , scope : this } ) ; } else { this . _continueCallingFilters ( null , args ) ; } }
If there are filters to be loaded, load them, then call all the filters.
@param {Boolean} isResponse
@param {aria.core.CfgBeans:IOAsyncRequestCfg} req request object
@param {aria.core.CfgBeans:Callback} cb callback
@private
If there are filters to be loaded load them then call all the filters .