lib/bundle.js
/**
 * Remove the dead connections from the given connection list.
 */
Remove the dead connections from the given connection list.
Remove the dead connections from the given connection list .
function cleanList(list) {
    var prev;
    var conn = list.first;
    while (conn !== null) {
        var next = conn.nextReceiver;
        if (!conn.callback) {
            conn.nextReceiver = null;
        }
        else if (!prev) {
            list.first = conn;
            prev = conn;
        }
        else {
            prev.nextReceiver = conn;
            prev = conn;
        }
        conn = next;
    }
    if (!prev) {
        list.first = null;
        list.last = null;
    }
    else {
        prev.nextReceiver = null;
        list.last = prev;
    }
}
function cleanList ( list ) { var prev ; var conn = list . first ; while ( conn !== null ) { var next = conn . nextReceiver ; if ( ! conn . callback ) { conn . nextReceiver = null ; } else if ( ! prev ) { list . first = conn ; prev = conn ; } else { prev . nextReceiver = conn ; prev = conn ; } conn = next ; } if ( ! prev ) { list . first = null ; list . last = null ; } else { prev . nextReceiver = null ; list . last = prev ; } }
Remove the dead connections from the given connection list.
Remove the dead connections from the given connection list .