lib/event/filter.js
function filterListeners (listenerCollection) {
        return function(filters) {
            var handlers = [];

            _.each(listenerCollection, function(listener){
                handlers = handlers.concat( findMatch(filters, listener) );
            });

            return handlers;
        };
    }
function filterListeners (listenerCollection) {
        return function(filters) {
            var handlers = [];

            _.each(listenerCollection, function(listener){
                handlers = handlers.concat( findMatch(filters, listener) );
            });

            return handlers;
        };
    }
function filterListeners ( listenerCollection ) { return function ( filters ) { var handlers = [ ] ; _ . each ( listenerCollection , function ( listener ) { handlers = handlers . concat ( findMatch ( filters , listener ) ) ; } ) ; return handlers ; } ; }
Function that accepts a collection of listeners and inspects each one to determine
if their handler should be called.

@param listenerCollection
@returns {Function}
Function that accepts a collection of listeners and inspects each one to determine if their handler should be called .