lib/bundle.js
/**
 * Emit a signal and invoke the connected callbacks.
 */
Emit a signal and invoke the connected callbacks.
Emit a signal and invoke the connected callbacks .
function emit(sender, signal, args) {
    var list = senderMap.get(sender);
    if (!list) {
        return;
    }
    list.refs++;
    try {
        var dirty = invokeList(list, sender, signal, args);
    }
    finally {
        list.refs--;
    }
    if (dirty && list.refs === 0) {
        cleanList(list);
    }
}
function emit ( sender , signal , args ) { var list = senderMap . get ( sender ) ; if ( ! list ) { return ; } list . refs ++ ; try { var dirty = invokeList ( list , sender , signal , args ) ; } finally { list . refs -- ; } if ( dirty && list . refs === 0 ) { cleanList ( list ) ; } }
Emit a signal and invoke the connected callbacks.
Emit a signal and invoke the connected callbacks .