packages/foxman-plugin-server/lib/client/js/builtin/eventbus.js
function off(type, handler) {
                if (all[type]) {
                    all[type].splice(all[type].indexOf(handler) >>> 0, 1);
                }
            }
function off(type, handler) {
                if (all[type]) {
                    all[type].splice(all[type].indexOf(handler) >>> 0, 1);
                }
            }
function off ( type , handler ) { if ( all [ type ] ) { all [ type ] . splice ( all [ type ] . indexOf ( handler ) >>> 0 , 1 ) ; } }
Remove an event handler for the given type.

@param  {String} type	Type of event to unregister `handler` from, or `"*"`
@param  {Function} handler Handler function to remove
@memberOf mitt
Remove an event handler for the given type .