src/aria/core/IOFiltersMgr.js
function (filterDef) {
                var filters = this._filters;
                // stop here if there are no filters
                if (!filters) {
                    return false;
                }
                var isWrongFilter = getFindFilterFunction(filterDef);
                if (isWrongFilter == null) {
                    this.$logError(this.INVALID_PARAMETER_FOR_ISFILTERPRESENT);
                    clean();
                    return false;
                }
                for (var i = 0, l = filters.length; i < l; i++) {
                    if (!isWrongFilter(filters[i])) {
                        clean();
                        return true;
                    }
                }
                clean();
                return false;
            }
function (filterDef) {
                var filters = this._filters;
                // stop here if there are no filters
                if (!filters) {
                    return false;
                }
                var isWrongFilter = getFindFilterFunction(filterDef);
                if (isWrongFilter == null) {
                    this.$logError(this.INVALID_PARAMETER_FOR_ISFILTERPRESENT);
                    clean();
                    return false;
                }
                for (var i = 0, l = filters.length; i < l; i++) {
                    if (!isWrongFilter(filters[i])) {
                        clean();
                        return true;
                    }
                }
                clean();
                return false;
            }
function ( filterDef ) { var filters = this . _filters ; // stop here if there are no filters if ( ! filters ) { return false ; } var isWrongFilter = getFindFilterFunction ( filterDef ) ; if ( isWrongFilter == null ) { this . $logError ( this . INVALID_PARAMETER_FOR_ISFILTERPRESENT ) ; clean ( ) ; return false ; } for ( var i = 0 , l = filters . length ; i < l ; i ++ ) { if ( ! isWrongFilter ( filters [ i ] ) ) { clean ( ) ; return true ; } } clean ( ) ; return false ; }
Find if a filter is present in the list of filters.
@param {MultiTypes} filter It can be one of the following possibilities:
<ul>
<li>An instance of a filter class.</li>
<li>An object containing two properties: classpath and initArgs.</li>
<li>The classpath of a filter class.</li>
</ul>
@return {Boolean} return true if the filter was found, false if no filter matching the conditions was
found.
Find if a filter is present in the list of filters .