dist/crocodoc.viewer.js
function(type, handler) {
            var handlers = this._handlers[type],
                i,
                len;

            if (handlers instanceof Array) {
                if (!handler) {
                    handlers.length = 0;
                    return;
                }
                for (i = 0, len = handlers.length; i < len; i++) {
                    if (handlers[i] === handler || handlers[i].handler === handler) {
                        handlers.splice(i, 1);
                        break;
                    }
                }
            }
        }
function(type, handler) {
            var handlers = this._handlers[type],
                i,
                len;

            if (handlers instanceof Array) {
                if (!handler) {
                    handlers.length = 0;
                    return;
                }
                for (i = 0, len = handlers.length; i < len; i++) {
                    if (handlers[i] === handler || handlers[i].handler === handler) {
                        handlers.splice(i, 1);
                        break;
                    }
                }
            }
        }
function ( type , handler ) { var handlers = this . _handlers [ type ] , i , len ; if ( handlers instanceof Array ) { if ( ! handler ) { handlers . length = 0 ; return ; } for ( i = 0 , len = handlers . length ; i < len ; i ++ ) { if ( handlers [ i ] === handler || handlers [ i ] . handler === handler ) { handlers . splice ( i , 1 ) ; break ; } } } }
Removes an event handler from a given event.
If the handler is not provided, remove all handlers of the given type.
@param {string} type The name of the event to remove from.
@param {Function} handler The function to remove as a handler.
@returns {void}
Removes an event handler from a given event . If the handler is not provided remove all handlers of the given type .