Skip to content
Commit b1196d3a authored by Andrew Price's avatar Andrew Price
Browse files

js-duk: Implement exit events

Replaces bind(K_BIND_SHUTDOWN, ...)

    function handler(ev)
    {
            switch (ev.type) {
            ...
            case "exit":
                    mrodder = ev.data;
                    if (mrodder)
                            mw.print("Your mw session was killed by " + mrodder);
                    break;
            ...
            }
    }
    mw.onevent.push(handler);
parent 5b49d551
Loading
Loading
Loading
Pipeline #466 passed with stage
in 7 minutes and 41 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment