src/basis/dom/event.js
function removeHandler(node, eventType, handler, thisObject){
    node = getNode(node);

    var handlers = node === global ? globalEvents : node[EVENT_HOLDER];
    if (handlers)
    {
      var eventTypeHandlers = handlers[eventType];
      if (eventTypeHandlers)
      {
        for (var i = 0, item; item = eventTypeHandlers[i]; i++)
        {
          if (item.handler === handler && item.thisObject === thisObject)
          {
            // delete event handler
            eventTypeHandlers.splice(i, 1);

            // if there is no more handler for this event, clear it
            if (!eventTypeHandlers.length)
              clearHandlers(node, eventType);

            return;
          }
        }
      }
    }
  }
function removeHandler(node, eventType, handler, thisObject){
    node = getNode(node);

    var handlers = node === global ? globalEvents : node[EVENT_HOLDER];
    if (handlers)
    {
      var eventTypeHandlers = handlers[eventType];
      if (eventTypeHandlers)
      {
        for (var i = 0, item; item = eventTypeHandlers[i]; i++)
        {
          if (item.handler === handler && item.thisObject === thisObject)
          {
            // delete event handler
            eventTypeHandlers.splice(i, 1);

            // if there is no more handler for this event, clear it
            if (!eventTypeHandlers.length)
              clearHandlers(node, eventType);

            return;
          }
        }
      }
    }
  }
function removeHandler ( node , eventType , handler , thisObject ) { node = getNode ( node ) ; var handlers = node === global ? globalEvents : node [ EVENT_HOLDER ] ; if ( handlers ) { var eventTypeHandlers = handlers [ eventType ] ; if ( eventTypeHandlers ) { for ( var i = 0 , item ; item = eventTypeHandlers [ i ] ; i ++ ) { if ( item . handler === handler && item . thisObject === thisObject ) { // delete event handler eventTypeHandlers . splice ( i , 1 ) ; // if there is no more handler for this event, clear it if ( ! eventTypeHandlers . length ) clearHandlers ( node , eventType ) ; return ; } } } } }
Removes handler from node's handler holder.
@param {Node|Window|string} node
@param {string} eventType
@param {object} handler
@param {object=} thisObject Context for handlers
Removes handler from node s handler holder .