src/index.js
function (name, fn) {
        this._listeners = !name
            ? []
            : filter(this._listeners, function (listener) {
                if (listener.name !== name) {
                    return true;
                } else {
                    if (isFunction(fn)) {
                        return listener.fn !== fn;
                    } else {
                        return false;
                    }
                }
            });

        return this;
    }
function (name, fn) {
        this._listeners = !name
            ? []
            : filter(this._listeners, function (listener) {
                if (listener.name !== name) {
                    return true;
                } else {
                    if (isFunction(fn)) {
                        return listener.fn !== fn;
                    } else {
                        return false;
                    }
                }
            });

        return this;
    }
function ( name , fn ) { this . _listeners = ! name ? [ ] : filter ( this . _listeners , function ( listener ) { if ( listener . name !== name ) { return true ; } else { if ( isFunction ( fn ) ) { return listener . fn !== fn ; } else { return false ; } } } ) ; return this ; }
Unregister listener.
Remove concrete listener by name and itself definition.

@param {string} [name]
@param {Function} [fn]
Unregister listener . Remove concrete listener by name and itself definition .