lib/bundle.js
/**
 * Break the connection between a sender, signal, and callback.
 */
Break the connection between a sender, signal, and callback.
Break the connection between a sender signal and callback .
function disconnect(sender, signal, callback, thisArg) {
    thisArg = thisArg || void 0;
    var list = senderMap.get(sender);
    if (!list) {
        return false;
    }
    var conn = findConnection(list, signal, callback, thisArg);
    if (!conn) {
        return false;
    }
    removeFromSendersList(conn);
    conn.callback = null;
    conn.thisArg = null;
    return true;
}
function disconnect ( sender , signal , callback , thisArg ) { thisArg = thisArg || void 0 ; var list = senderMap . get ( sender ) ; if ( ! list ) { return false ; } var conn = findConnection ( list , signal , callback , thisArg ) ; if ( ! conn ) { return false ; } removeFromSendersList ( conn ) ; conn . callback = null ; conn . thisArg = null ; return true ; }
Break the connection between a sender, signal, and callback.
Break the connection between a sender signal and callback .
// Coerce a `null` thisArg to `undefined`. // Search for an equivalent connection and bail if none exists. // Remove the connection from the senders list. It will be removed // from the receivers list the next time the signal is emitted. // Clear the connection data so it becomes a dead connection.